From 248a70810ab80925d7f95e0d6888a2569408de76 Mon Sep 17 00:00:00 2001 From: kanoi Date: Thu, 31 Dec 2015 13:37:13 +1100 Subject: [PATCH] ckdb - fix sync breakdown on homepage --- src/ckdb.h | 2 +- src/ckdb_cmd.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ckdb.h b/src/ckdb.h index 56244f0c..077baf00 100644 --- a/src/ckdb.h +++ b/src/ckdb.h @@ -51,7 +51,7 @@ #define DB_VLOCK "1" #define DB_VERSION "1.0.4" -#define CKDB_VERSION DB_VERSION"-1.800" +#define CKDB_VERSION DB_VERSION"-1.801" #define WHERE_FFL " - from %s %s() line %d" #define WHERE_FFL_HERE __FILE__, __func__, __LINE__ diff --git a/src/ckdb_cmd.c b/src/ckdb_cmd.c index 23234f5f..0b75e90d 100644 --- a/src/ckdb_cmd.c +++ b/src/ckdb_cmd.c @@ -3308,8 +3308,11 @@ static char *cmd_homepage(__maybe_unused PGconn *conn, char *cmd, char *id, int csync = cmd_workqueue_store->count; int bsync = btc_workqueue_store->count; snprintf(tmp, sizeof(tmp), "psync=%d%c", psync, FLDSEP); + APPEND_REALLOC(buf, off, len, tmp); snprintf(tmp, sizeof(tmp), "csync=%d%c", csync, FLDSEP); + APPEND_REALLOC(buf, off, len, tmp); snprintf(tmp, sizeof(tmp), "bsync=%d%c", bsync, FLDSEP); + APPEND_REALLOC(buf, off, len, tmp); snprintf(tmp, sizeof(tmp), "sync=%d%c", psync + csync + bsync, FLDSEP); APPEND_REALLOC(buf, off, len, tmp);