From 5a57d01911766025a0725e69a2fe542fefb92d16 Mon Sep 17 00:00:00 2001 From: kanoi Date: Wed, 19 Nov 2014 22:49:45 +1100 Subject: [PATCH] ckdb - correct pplns workmarkers sort --- 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 7767835f..d6d3c49d 100644 --- a/src/ckdb.h +++ b/src/ckdb.h @@ -52,7 +52,7 @@ #define DB_VLOCK "1" #define DB_VERSION "0.9.4" -#define CKDB_VERSION DB_VERSION"-0.645" +#define CKDB_VERSION DB_VERSION"-0.646" #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 13761c58..b9bddb32 100644 --- a/src/ckdb_cmd.c +++ b/src/ckdb_cmd.c @@ -3139,8 +3139,8 @@ static char *cmd_pplns(__maybe_unused PGconn *conn, char *cmd, char *id, lookworkmarkers.workinfoidend = begin_workinfoid; INIT_WORKMARKERS(&wm_look); wm_look.data = (void *)(&lookworkmarkers); - wm_item = find_before_in_ktree(workmarkers_root, &wm_look, - cmp_workmarkers, wm_ctx); + wm_item = find_before_in_ktree(workmarkers_workinfoid_root, &wm_look, + cmp_workmarkers_workinfoid, wm_ctx); DATA_WORKMARKERS_NULL(workmarkers, wm_item); while (total < diff_want && wm_item && CURRENT(&(workmarkers->expirydate))) { if (WMREADY(workmarkers->status)) {