From 6fd92bea694b2e9be7badd94226ca26e2016eec6 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 24 Dec 2016 09:41:49 +1100 Subject: [PATCH] Remove method from remote workinfo before submitting to ckdb. --- src/stratifier.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/stratifier.c b/src/stratifier.c index 73b3c1de..75024b56 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1608,6 +1608,9 @@ static void add_remote_base(ckpool_t *ckp, sdata_t *sdata, workbase_t *wb, const HASH_ADD_I64(sdata->remote_workbases, id, wb); ck_wunlock(&sdata->workbase_lock); + /* Remove unwanted entry, add extra info and submit it to ckdb */ + json_object_del(val, "method"); + /* Create a new copy for use by ckdbq_add */ val = json_deep_copy(wb_val); /* Replace workinfoid with mapped id */ json_set_int64(val, "workinfoid", wb->mapped_id);