summaryrefslogtreecommitdiff
path: root/src/or/consdiffmgr.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-07-12 12:17:51 -0400
committerNick Mathewson <nickm@torproject.org>2017-07-27 16:28:59 -0400
commit0ae0b5aa4136fe6df7863c8a5b7d239d519b7393 (patch)
treeb6091d0a70fcc9a03f2c0ff361e7c02ba2e7f1d7 /src/or/consdiffmgr.c
parentbddea78dede010cdf0115265546cdca0c47d64d0 (diff)
downloadtor-0ae0b5aa4136fe6df7863c8a5b7d239d519b7393.tar.gz
tor-0ae0b5aa4136fe6df7863c8a5b7d239d519b7393.zip
Queue consensus diffs at LOW priority.
Fixes bug 22883.
Diffstat (limited to 'src/or/consdiffmgr.c')
-rw-r--r--src/or/consdiffmgr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/consdiffmgr.c b/src/or/consdiffmgr.c
index 638fcd6794..8d0a0af3d5 100644
--- a/src/or/consdiffmgr.c
+++ b/src/or/consdiffmgr.c
@@ -1605,7 +1605,8 @@ consensus_diff_queue_diff_work(consensus_cache_entry_t *diff_from,
goto err;
workqueue_entry_t *work;
- work = cpuworker_queue_work(consensus_diff_worker_threadfn,
+ work = cpuworker_queue_work(WQ_PRI_LOW,
+ consensus_diff_worker_threadfn,
consensus_diff_worker_replyfn,
job);
if (!work)
@@ -1768,7 +1769,8 @@ consensus_queue_compression_work(const char *consensus,
if (background_compression) {
workqueue_entry_t *work;
- work = cpuworker_queue_work(consensus_compress_worker_threadfn,
+ work = cpuworker_queue_work(WQ_PRI_LOW,
+ consensus_compress_worker_threadfn,
consensus_compress_worker_replyfn,
job);
if (!work) {