Browse Source

ckdb - include the count of the seq trans range in the message

master
kanoi 9 years ago
parent
commit
83c8a61378
  1. 11
      src/ckdb.c
  2. 2
      src/ckdb.h

11
src/ckdb.c

@ -2106,8 +2106,10 @@ static void trans_seq(tv_t *now)
"%"PRIu64, seqnum1);
} else {
snprintf(range, sizeof(range),
"%"PRIu64"-%"PRIu64,
seqnum0, seqnum1);
"%"PRIu64"-%"PRIu64
" (%"PRIu64")",
seqnum0, seqnum1,
1 + seqnum1 - seqnum0);
}
btu64_to_buf(&seqstt, t_buf,
sizeof(t_buf));
@ -2135,8 +2137,9 @@ static void trans_seq(tv_t *now)
"%"PRIu64, seqnum1);
} else {
snprintf(range, sizeof(range),
"%"PRIu64"-%"PRIu64,
seqnum0, seqnum1);
"%"PRIu64"-%"PRIu64" (%"PRIu64")",
seqnum0, seqnum1,
1 + seqnum1 - seqnum0);
}
btu64_to_buf(&seqstt, t_buf, sizeof(t_buf));
bt_to_buf(&(seqsec.tv_sec), t_buf2, sizeof(t_buf2));

2
src/ckdb.h

@ -51,7 +51,7 @@
#define DB_VLOCK "1"
#define DB_VERSION "1.0.5"
#define CKDB_VERSION DB_VERSION"-2.009"
#define CKDB_VERSION DB_VERSION"-2.010"
#define WHERE_FFL " - from %s %s() line %d"
#define WHERE_FFL_HERE __FILE__, __func__, __LINE__

Loading…
Cancel
Save