From 2e340ec38aef356320013c395d4e674105997fb2 Mon Sep 17 00:00:00 2001 From: kanoi Date: Sun, 18 Jan 2015 21:02:48 +1100 Subject: [PATCH] ckdb - add the workername to the workerstats user error message --- src/ckdb.h | 2 +- src/ckdb_dbio.c | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/ckdb.h b/src/ckdb.h index 731607a5..051032e9 100644 --- a/src/ckdb.h +++ b/src/ckdb.h @@ -52,7 +52,7 @@ #define DB_VLOCK "1" #define DB_VERSION "0.9.6" -#define CKDB_VERSION DB_VERSION"-0.837" +#define CKDB_VERSION DB_VERSION"-0.838" #define WHERE_FFL " - from %s %s() line %d" #define WHERE_FFL_HERE __FILE__, __func__, __LINE__ diff --git a/src/ckdb_dbio.c b/src/ckdb_dbio.c index f2b194cb..6a260534 100644 --- a/src/ckdb_dbio.c +++ b/src/ckdb_dbio.c @@ -5278,11 +5278,13 @@ bool workerstats_add(char *poolinstance, char *elapsed, char *username, u_item = find_users(username); K_RUNLOCK(users_free); if (!u_item) { - char *txt; - LOGERR("%s(): unknown user '%s'", + char *usr, *wrk; + LOGERR("%s(): unknown user '%s' (worker=%s)", __func__, - txt = safe_text(username)); - free(txt); + usr = safe_text(username), + wrk = safe_text(workername)); + free(usr); + free(wrk); return false; } DATA_USERS(users, u_item);