From 2c0b03877bb03d453760022023a40f57109ae1e9 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Thu, 4 Feb 2016 09:50:31 +1100 Subject: [PATCH] Create the ckdb heartbeat thread to keep throbber moving even when standalone pool/node is idle --- src/stratifier.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/stratifier.c b/src/stratifier.c index 3a27b84a..623b2400 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -7541,10 +7541,8 @@ int stratifier(proc_instance_t *pi) sdata->sauthq = create_ckmsgq(ckp, "authoriser", &sauth_process); sdata->stxnq = create_ckmsgq(ckp, "stxnq", &send_transactions); sdata->srecvs = create_ckmsgqs(ckp, "sreceiver", &srecv_process, threads); - if (!CKP_STANDALONE(ckp)) { - sdata->ckdbq = create_ckmsgq(ckp, "ckdbqueue", &ckdbq_process); - create_pthread(&pth_heartbeat, ckdb_heartbeat, ckp); - } + sdata->ckdbq = create_ckmsgq(ckp, "ckdbqueue", &ckdbq_process); + create_pthread(&pth_heartbeat, ckdb_heartbeat, ckp); read_poolstats(ckp); cklock_init(&sdata->workbase_lock);