Browse Source

ckdb - only check blocks confirmed after startup completes

master
kanoi 10 years ago
parent
commit
2990e69f58
  1. 3
      src/ckdb.c
  2. 2
      src/ckdb.h

3
src/ckdb.c

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

2
src/ckdb.h

@ -52,7 +52,7 @@
#define DB_VLOCK "1" #define DB_VLOCK "1"
#define DB_VERSION "0.9.2" #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 " - from %s %s() line %d"
#define WHERE_FFL_HERE __FILE__, __func__, __LINE__ #define WHERE_FFL_HERE __FILE__, __func__, __LINE__

Loading…
Cancel
Save