Browse Source

Create the ckdb heartbeat thread to keep throbber moving even when standalone pool/node is idle

master
Con Kolivas 9 years ago
parent
commit
2c0b03877b
  1. 6
      src/stratifier.c

6
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);

Loading…
Cancel
Save