diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/tagcache.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c index 3d84b4ca89..0ddf2b0228 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c @@ -969,13 +969,15 @@ static bool build_lookup_list(struct tagcache_search *tcs) while (ecread(tcs->masterfd, &entry, 1, index_entry_ec, tc_stat.econ) == sizeof(struct index_entry)) { + if (tcs->seek_list_count == SEEK_LIST_SIZE) + break ; + + tcs->seek_pos++; + /* Check if entry has been deleted. */ if (entry.flag & FLAG_DELETED) continue; - if (tcs->seek_list_count == SEEK_LIST_SIZE) - break ; - /* Go through all filters.. */ for (i = 0; i < tcs->filter_count; i++) { @@ -983,8 +985,6 @@ static bool build_lookup_list(struct tagcache_search *tcs) break ; } - tcs->seek_pos++; - if (i < tcs->filter_count) continue ; |