Browse Source

ckdb - fix block stat generation error handler typo bug

master
kanoi 9 years ago
parent
commit
fc51ae2964
  1. 2
      src/ckdb.h
  2. 4
      src/ckdb_data.c

2
src/ckdb.h

@ -55,7 +55,7 @@
#define DB_VLOCK "1" #define DB_VLOCK "1"
#define DB_VERSION "1.0.2" #define DB_VERSION "1.0.2"
#define CKDB_VERSION DB_VERSION"-1.227" #define CKDB_VERSION DB_VERSION"-1.228"
#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__

4
src/ckdb_data.c

@ -2924,8 +2924,8 @@ bool check_update_blocks_stats(tv_t *stats)
K_RUNLOCK(workinfo_free); K_RUNLOCK(workinfo_free);
if (!w_item) { if (!w_item) {
setnow(&now); setnow(&now);
if (!blocks->workinfoid != last_missing_workinfoid || if (blocks->workinfoid != last_missing_workinfoid ||
tvdiff(&now, &last_message) >= 5.0) { tvdiff(&now, &last_message) >= 15.0) {
LOGEMERG("%s(): missing block workinfoid %" LOGEMERG("%s(): missing block workinfoid %"
PRId32"/%"PRId64"/%s", PRId32"/%"PRId64"/%s",
__func__, blocks->height, __func__, blocks->height,

Loading…
Cancel
Save