Browse Source

ckdb - add the workername to the workerstats user error message

master
kanoi 10 years ago
parent
commit
2e340ec38a
  1. 2
      src/ckdb.h
  2. 10
      src/ckdb_dbio.c

2
src/ckdb.h

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

10
src/ckdb_dbio.c

@ -5278,11 +5278,13 @@ bool workerstats_add(char *poolinstance, char *elapsed, char *username,
u_item = find_users(username); u_item = find_users(username);
K_RUNLOCK(users_free); K_RUNLOCK(users_free);
if (!u_item) { if (!u_item) {
char *txt; char *usr, *wrk;
LOGERR("%s(): unknown user '%s'", LOGERR("%s(): unknown user '%s' (worker=%s)",
__func__, __func__,
txt = safe_text(username)); usr = safe_text(username),
free(txt); wrk = safe_text(workername));
free(usr);
free(wrk);
return false; return false;
} }
DATA_USERS(users, u_item); DATA_USERS(users, u_item);

Loading…
Cancel
Save