From 2990e69f5841ec873f41359a7068fed68dbf5fdc Mon Sep 17 00:00:00 2001 From: kanoi Date: Sat, 18 Oct 2014 00:26:37 +1100 Subject: [PATCH] ckdb - only check blocks confirmed after startup completes --- src/ckdb.c | 3 ++- src/ckdb.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ckdb.c b/src/ckdb.c index 28f21b57..59f94fcc 100644 --- a/src/ckdb.c +++ b/src/ckdb.c @@ -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(); } diff --git a/src/ckdb.h b/src/ckdb.h index dddc1b65..35d28ac6 100644 --- a/src/ckdb.h +++ b/src/ckdb.h @@ -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__