tagcache: remove TAGCACHE_STRICT_ALIGN flag
This has been defined to 1 since forever, so the last remaining check presumably isn't catching anything. Change-Id: I0b60f831a6e5e8fc45788e7581fccb0cb62bce73
This commit is contained in:
parent
b6c2b54e01
commit
90dc64da32
1 changed files with 0 additions and 12 deletions
|
@ -117,9 +117,6 @@
|
|||
/* Used to guess the necessary buffer size at commit. */
|
||||
#define TAGFILE_ENTRY_AVG_LENGTH 16
|
||||
|
||||
/* Always strict align entries for best performance and binary compatibility. */
|
||||
#define TAGCACHE_STRICT_ALIGN 1
|
||||
|
||||
/* Max events in the internal tagcache command queue. */
|
||||
#define TAGCACHE_COMMAND_QUEUE_LENGTH 32
|
||||
|
||||
|
@ -2353,15 +2350,6 @@ static int tempbuf_sort(int fd)
|
|||
% TAGFILE_ENTRY_CHUNK_LENGTH);
|
||||
}
|
||||
|
||||
#ifdef TAGCACHE_STRICT_ALIGN
|
||||
/* Make sure the entry is long aligned. */
|
||||
if (index[i].seek & 0x03)
|
||||
{
|
||||
logf("tempbuf_sort: alignment error!");
|
||||
return -3;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (ecwrite(fd, &fe, 1, tagfile_entry_ec, tc_stat.econ) !=
|
||||
sizeof(struct tagfile_entry))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue