summaryrefslogtreecommitdiff
path: root/apps/tagcache.c
diff options
context:
space:
mode:
authorSteve Bavin <pondlife@pondlife.me>2007-03-08 08:20:30 +0000
committerSteve Bavin <pondlife@pondlife.me>2007-03-08 08:20:30 +0000
commit149bc03d86e1ae8c2d05fb9d657500252a8ba20a (patch)
treef5207faaa0f05af465760d9c9017d31df1d38a19 /apps/tagcache.c
parentb1646abc18eab961c815822cf548518315b2ee7d (diff)
downloadrockbox-149bc03d86e1ae8c2d05fb9d657500252a8ba20a.tar.gz
rockbox-149bc03d86e1ae8c2d05fb9d657500252a8ba20a.zip
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
Diffstat (limited to 'apps/tagcache.c')
-rw-r--r--apps/tagcache.c4
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}
3973int tagcache_get_max_commit_step(void) 3975int 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