From b5cdf0974e3dd46eb9b11e698ee8afbf072f8239 Mon Sep 17 00:00:00 2001 From: kanoi Date: Tue, 8 Dec 2015 21:40:01 +1100 Subject: [PATCH] ckdb - remove the lock warning when using exclusive access to the transfer tree --- src/ckdb.h | 2 +- src/ckdb_cmd.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ckdb.h b/src/ckdb.h index 3c8b4ac1..ceabfde1 100644 --- a/src/ckdb.h +++ b/src/ckdb.h @@ -55,7 +55,7 @@ #define DB_VLOCK "1" #define DB_VERSION "1.0.4" -#define CKDB_VERSION DB_VERSION"-1.601" +#define CKDB_VERSION DB_VERSION"-1.602" #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 18c89302..b91542da 100644 --- a/src/ckdb_cmd.c +++ b/src/ckdb_cmd.c @@ -3595,7 +3595,7 @@ static char *cmd_setatts(PGconn *conn, char *cmd, char *id, goto bats; } else { DATA_USERS(users, u_item); - t_item = first_in_ktree(trf_root, ctx); + t_item = first_in_ktree_nolock(trf_root, ctx); while (t_item) { DATA_TRANSFER(transfer, t_item); if (strncmp(transfer->name, "ua_", 3) == 0) { @@ -3907,7 +3907,7 @@ static char *cmd_setopts(PGconn *conn, char *cmd, char *id, LOGDEBUG("%s(): cmd '%s'", __func__, cmd); - t_item = first_in_ktree(trf_root, ctx); + t_item = first_in_ktree_nolock(trf_root, ctx); while (t_item) { DATA_TRANSFER(transfer, t_item); if (strncmp(transfer->name, "oc_", 3) == 0) {