From 0c1fd0c86500ec0e907893840e60e7f7956271ec Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 27 Jan 2015 10:09:40 +1100 Subject: [PATCH] Do not create unnecessary ckdbqueue in standalone mode. --- src/stratifier.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/stratifier.c b/src/stratifier.c index 63a4eb37..76fee5f6 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -4173,10 +4173,11 @@ int stratifier(proc_instance_t *pi) threads = threads / 2 ? : 1; sdata->srecvs = create_ckmsgqs(ckp, "sreceiver", &srecv_process, threads); sdata->sauthq = create_ckmsgq(ckp, "authoriser", &sauth_process); - sdata->ckdbq = create_ckmsgq(ckp, "ckdbqueue", &ckdbq_process); sdata->stxnq = create_ckmsgq(ckp, "stxnq", &send_transactions); - if (!CKP_STANDALONE(ckp)) + if (!CKP_STANDALONE(ckp)) { + sdata->ckdbq = create_ckmsgq(ckp, "ckdbqueue", &ckdbq_process); create_pthread(&pth_heartbeat, ckdb_heartbeat, ckp); + } cklock_init(&sdata->workbase_lock); if (!ckp->proxy)