ckdb - only check blocks confirmed after startup completes

This commit is contained in:
kanoi 2014-10-18 00:26:37 +11:00
parent 2530c8a028
commit 2990e69f58
2 changed files with 3 additions and 2 deletions

View File

@ -1630,7 +1630,8 @@ static void *summariser(__maybe_unused void *arg)
while (!everyone_die) {
sleep(5);
if (!everyone_die) {
check_blocks();
if (startup_complete)
check_blocks();
summarise_blocks();
}

View File

@ -52,7 +52,7 @@
#define DB_VLOCK "1"
#define DB_VERSION "0.9.2"
#define CKDB_VERSION DB_VERSION"-0.512"
#define CKDB_VERSION DB_VERSION"-0.513"
#define WHERE_FFL " - from %s %s() line %d"
#define WHERE_FFL_HERE __FILE__, __func__, __LINE__