From a67444a0dc69a047cd893d062f738c37f02ce8df Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 13 May 2017 12:50:26 +1000 Subject: [PATCH] Disable ckdbq thread creation in standalone mode. --- src/stratifier.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/stratifier.c b/src/stratifier.c index c292d483..7588ed01 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -8625,8 +8625,10 @@ void *stratifier(void *arg) 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); - sdata->ckdbq = create_ckmsgqs(ckp, "ckdbqueue", &ckdbq_process, threads); - create_pthread(&pth_heartbeat, ckdb_heartbeat, ckp); + if (!CKP_STANDALONE(ckp)) { + sdata->ckdbq = create_ckmsgqs(ckp, "ckdbqueue", &ckdbq_process, threads); + create_pthread(&pth_heartbeat, ckdb_heartbeat, ckp); + } read_poolstats(ckp, &tvsec_diff); read_userstats(ckp, sdata, tvsec_diff);