Browse Source

ckdb - report an error if keysummary != sharesummary total

master
kanoi 8 years ago
parent
commit
579c2ee279
  1. 2
      src/ckdb.h
  2. 6
      src/ckdb_dbio.c

2
src/ckdb.h

@ -52,7 +52,7 @@
#define DB_VLOCK "1" #define DB_VLOCK "1"
#define DB_VERSION "1.0.7" #define DB_VERSION "1.0.7"
#define CKDB_VERSION DB_VERSION"-2.203" #define CKDB_VERSION DB_VERSION"-2.204"
#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__

6
src/ckdb_dbio.c

@ -4974,6 +4974,12 @@ flail:
tvdiff(&kdb_fin, &kdb_stt), tvdiff(&kdb_fin, &kdb_stt),
tvdiff(&lck_got, &lck_stt), tvdiff(&lck_got, &lck_stt),
tvdiff(&lck_fin, &lck_got)); tvdiff(&lck_fin, &lck_got));
// This should never happen
if (kshareacc != (shareacc << 1) || kdiffacc != (diffacc << 1)) {
LOGERR("%s() CODE BUG: keysummary share/diff counts "
"are wrong!", shortname);
}
} }
free_ktree(ms_root, NULL); free_ktree(ms_root, NULL);
free_ktree(ks_root, NULL); free_ktree(ks_root, NULL);

Loading…
Cancel
Save