Browse Source

ckdb - only check blocks confirmed after startup completes

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

1
src/ckdb.c

@ -1630,6 +1630,7 @@ static void *summariser(__maybe_unused void *arg)
while (!everyone_die) { while (!everyone_die) {
sleep(5); sleep(5);
if (!everyone_die) { if (!everyone_die) {
if (startup_complete)
check_blocks(); 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