From 1c0f55c06d3ba766de765367a40081868f726ba1 Mon Sep 17 00:00:00 2001 From: kanoi Date: Thu, 24 Dec 2015 19:24:14 +1100 Subject: [PATCH] ckdb - ensure the listener queues can empty --- src/ckdb.c | 10 ++++------ src/ckdb.h | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/ckdb.c b/src/ckdb.c index f5a14973..9489a80f 100644 --- a/src/ckdb.c +++ b/src/ckdb.c @@ -4006,9 +4006,8 @@ static void *clistener(__maybe_unused void *arg) if (wq_item) { process_sockd(conn, wq_item); tick(); - } - - cksleep_ms(42); + } else + cksleep_ms(42); } clistener_using_data = false; @@ -4048,9 +4047,8 @@ static void *blistener(__maybe_unused void *arg) if (wq_item) { process_sockd(conn, wq_item); tick(); - } - - cksleep_ms(142); + } else + cksleep_ms(142); } blistener_using_data = false; diff --git a/src/ckdb.h b/src/ckdb.h index f002780a..f0f69765 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.701" +#define CKDB_VERSION DB_VERSION"-1.702" #define WHERE_FFL " - from %s %s() line %d" #define WHERE_FFL_HERE __FILE__, __func__, __LINE__