Browse Source

ckdb - also find seqall if it's last, for seqall logging

master
kanoi 9 years ago
parent
commit
8e3615205a
  1. 4
      src/ckdb.c
  2. 2
      src/ckdb.h

4
src/ckdb.c

@ -4995,6 +4995,8 @@ static void *socketer(void *arg)
col = strchr(pos, JSON_VALUE); col = strchr(pos, JSON_VALUE);
if (col) { if (col) {
com = strchr(col, JSON_SEP); com = strchr(col, JSON_SEP);
if (!com)
com = strchr(col, JSON_END);
if (com) { if (com) {
LOGNOTICE("%s() SEQALL %s %.*s", LOGNOTICE("%s() SEQALL %s %.*s",
__func__, __func__,
@ -5231,6 +5233,8 @@ static void reload_line(char *filename, char *buf, uint64_t count)
col = strchr(pos, JSON_VALUE); col = strchr(pos, JSON_VALUE);
if (col) { if (col) {
com = strchr(col, JSON_SEP); com = strchr(col, JSON_SEP);
if (!com)
com = strchr(col, JSON_END);
if (com) { if (com) {
LOGNOTICE("%s() SEQALL %.*s", LOGNOTICE("%s() SEQALL %.*s",
__func__, __func__,

2
src/ckdb.h

@ -51,7 +51,7 @@
#define DB_VLOCK "1" #define DB_VLOCK "1"
#define DB_VERSION "1.0.5" #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 " - from %s %s() line %d"
#define WHERE_FFL_HERE __FILE__, __func__, __LINE__ #define WHERE_FFL_HERE __FILE__, __func__, __LINE__

Loading…
Cancel
Save