summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/tagcache.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c
index bab450ffed..b9960f2ad0 100644
--- a/apps/tagcache.c
+++ b/apps/tagcache.c
@@ -117,9 +117,6 @@
117/* Used to guess the necessary buffer size at commit. */ 117/* Used to guess the necessary buffer size at commit. */
118#define TAGFILE_ENTRY_AVG_LENGTH 16 118#define TAGFILE_ENTRY_AVG_LENGTH 16
119 119
120/* Always strict align entries for best performance and binary compatibility. */
121#define TAGCACHE_STRICT_ALIGN 1
122
123/* Max events in the internal tagcache command queue. */ 120/* Max events in the internal tagcache command queue. */
124#define TAGCACHE_COMMAND_QUEUE_LENGTH 32 121#define TAGCACHE_COMMAND_QUEUE_LENGTH 32
125 122
@@ -2353,15 +2350,6 @@ static int tempbuf_sort(int fd)
2353 % TAGFILE_ENTRY_CHUNK_LENGTH); 2350 % TAGFILE_ENTRY_CHUNK_LENGTH);
2354 } 2351 }
2355 2352
2356#ifdef TAGCACHE_STRICT_ALIGN
2357 /* Make sure the entry is long aligned. */
2358 if (index[i].seek & 0x03)
2359 {
2360 logf("tempbuf_sort: alignment error!");
2361 return -3;
2362 }
2363#endif
2364
2365 if (ecwrite(fd, &fe, 1, tagfile_entry_ec, tc_stat.econ) != 2353 if (ecwrite(fd, &fe, 1, tagfile_entry_ec, tc_stat.econ) !=
2366 sizeof(struct tagfile_entry)) 2354 sizeof(struct tagfile_entry))
2367 { 2355 {