From 149bc03d86e1ae8c2d05fb9d657500252a8ba20a Mon Sep 17 00:00:00 2001 From: Steve Bavin Date: Thu, 8 Mar 2007 08:20:30 +0000 Subject: Really don't try to initialise while the database status is unknown git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12684 a1c6a512-1295-4272-9138-f99709370657 --- apps/tagcache.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apps/tagcache.c') 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) logf("tagcache committed"); remove(TAGCACHE_FILE_TEMP); tc_stat.ready = check_all_headers(); + tc_stat.readyvalid = true; if (local_allocation) { @@ -3770,6 +3771,7 @@ static void tagcache_thread(void) /* Don't delay bootup with the header check but do it on background. */ sleep(HZ); tc_stat.ready = check_all_headers(); + tc_stat.readyvalid = true; while (1) { @@ -3972,6 +3974,6 @@ int tagcache_get_commit_step(void) } int tagcache_get_max_commit_step(void) { - return 8; /* To be written, better hard-coded here than in the UI */ + return (int)(sizeof(sorted_tags)/sizeof(sorted_tags[0]))+1; } -- cgit v1.2.3