diff options
Diffstat (limited to 'apps/tagcache.c')
-rw-r--r-- | apps/tagcache.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c index a899ff91fd..efa615675e 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c | |||
@@ -2617,6 +2617,7 @@ static bool commit(void) | |||
2617 | logf("tagcache committed"); | 2617 | logf("tagcache committed"); |
2618 | remove(TAGCACHE_FILE_TEMP); | 2618 | remove(TAGCACHE_FILE_TEMP); |
2619 | tc_stat.ready = check_all_headers(); | 2619 | tc_stat.ready = check_all_headers(); |
2620 | tc_stat.readyvalid = true; | ||
2620 | 2621 | ||
2621 | if (local_allocation) | 2622 | if (local_allocation) |
2622 | { | 2623 | { |
@@ -3770,6 +3771,7 @@ static void tagcache_thread(void) | |||
3770 | /* Don't delay bootup with the header check but do it on background. */ | 3771 | /* Don't delay bootup with the header check but do it on background. */ |
3771 | sleep(HZ); | 3772 | sleep(HZ); |
3772 | tc_stat.ready = check_all_headers(); | 3773 | tc_stat.ready = check_all_headers(); |
3774 | tc_stat.readyvalid = true; | ||
3773 | 3775 | ||
3774 | while (1) | 3776 | while (1) |
3775 | { | 3777 | { |
@@ -3972,6 +3974,6 @@ int tagcache_get_commit_step(void) | |||
3972 | } | 3974 | } |
3973 | int tagcache_get_max_commit_step(void) | 3975 | int tagcache_get_max_commit_step(void) |
3974 | { | 3976 | { |
3975 | return 8; /* To be written, better hard-coded here than in the UI */ | 3977 | return (int)(sizeof(sorted_tags)/sizeof(sorted_tags[0]))+1; |
3976 | } | 3978 | } |
3977 | 3979 | ||