Browse Source

ckdb - add dup inimical message

master
kanoi 10 years ago
parent
commit
998a3587e4
  1. 10
      src/ckdb.c
  2. 2
      src/ckdb.h

10
src/ckdb.c

@ -2141,7 +2141,15 @@ static enum cmd_values process_seq(K_ITEM *seqall, int which, tv_t *cd,
dupcmd = update_seq(ckdb_cmds[which].seq, n_seqcmd, n_seqstt, n_seqpid, dupcmd = update_seq(ckdb_cmds[which].seq, n_seqcmd, n_seqstt, n_seqpid,
buf, now, cd, code, warndup, msg); buf, now, cd, code, warndup, msg);
// zzz // if dupall != dupcmd report a problem ... inside update_seq() ? if (dupall != dupcmd) {
LOGERR("SEQ INIMICAL %s/%"PRIu64"=%s %s/%"PRIu64"=%s "
"cmd=%.32s...",
seqnam[SEQ_ALL], n_seqall, dupall ? "DUP" : "notdup",
seqnam[ckdb_cmds[which].seq], n_seqcmd,
dupcmd ? "DUP" : "notdup",
st = safe_text_nonull(msg));
FREENULL(st);
}
/* The norm is: neither is a dup, so reply with ok to process /* The norm is: neither is a dup, so reply with ok to process
* If only one is a dup then that's a corrupt message or a bug * If only one is a dup then that's a corrupt message or a bug

2
src/ckdb.h

@ -55,7 +55,7 @@
#define DB_VLOCK "1" #define DB_VLOCK "1"
#define DB_VERSION "1.0.0" #define DB_VERSION "1.0.0"
#define CKDB_VERSION DB_VERSION"-1.072" #define CKDB_VERSION DB_VERSION"-1.073"
#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