Commit 9bc2ea13 authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:3932], wakeup workqueue if size_evicting falls to less than 1/8th...

[t:3932], wakeup workqueue if size_evicting falls to less than 1/8th size_current during partial eviction

git-svn-id: file:///svn/toku/tokudb@34427 c7de825b-a66e-492c-adef-691d508d4ae1
parent f193a215
......@@ -1326,7 +1326,10 @@ static void do_partial_eviction(CACHETABLE ct, PAIR p) {
assert(ct->size_evicting >= p->size_evicting_estimate);
ct->size_evicting -= p->size_evicting_estimate;
if (8*ct->size_evicting <= ct->size_current) {
workqueue_wakeup_write(&ct->wq, 0);
}
p->state = CTPAIR_IDLE;
if (p->cq) {
workitem_init(&p->asyncwork, NULL, p);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment