From 83c8a61378c98aaf4aeb0d3a377cee0ceab311d6 Mon Sep 17 00:00:00 2001 From: kanoi Date: Tue, 12 Apr 2016 21:00:23 +1000 Subject: [PATCH] ckdb - include the count of the seq trans range in the message --- src/ckdb.c | 11 +++++++---- src/ckdb.h | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/ckdb.c b/src/ckdb.c index b2e62b68..97cd2dc2 100644 --- a/src/ckdb.c +++ b/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)); diff --git a/src/ckdb.h b/src/ckdb.h index 58d74eb9..1b8d9ae1 100644 --- a/src/ckdb.h +++ b/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__