From 8e3615205af6485c6ad2baff30ff0c5d603beafa Mon Sep 17 00:00:00 2001 From: kanoi Date: Tue, 19 Apr 2016 19:09:21 +1000 Subject: [PATCH] ckdb - also find seqall if it's last, for seqall logging --- src/ckdb.c | 4 ++++ src/ckdb.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ckdb.c b/src/ckdb.c index 7c41c0d7..13900562 100644 --- a/src/ckdb.c +++ b/src/ckdb.c @@ -4995,6 +4995,8 @@ static void *socketer(void *arg) col = strchr(pos, JSON_VALUE); if (col) { com = strchr(col, JSON_SEP); + if (!com) + com = strchr(col, JSON_END); if (com) { LOGNOTICE("%s() SEQALL %s %.*s", __func__, @@ -5231,6 +5233,8 @@ static void reload_line(char *filename, char *buf, uint64_t count) col = strchr(pos, JSON_VALUE); if (col) { com = strchr(col, JSON_SEP); + if (!com) + com = strchr(col, JSON_END); if (com) { LOGNOTICE("%s() SEQALL %.*s", __func__, diff --git a/src/ckdb.h b/src/ckdb.h index 7f24f78e..8a45165c 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.011" +#define CKDB_VERSION DB_VERSION"-2.012" #define WHERE_FFL " - from %s %s() line %d" #define WHERE_FFL_HERE __FILE__, __func__, __LINE__