Commit 5b30253d authored by Yoni Fogel's avatar Yoni Fogel

[t:2506] [t:2507] Forgot to initialize workitem for write_pair_for_checkpoint when enqueueing on cq

git-svn-id: file:///svn/toku/tokudb@19194 c7de825b-a66e-492c-adef-691d508d4ae1
parent cd55c646
...@@ -1358,8 +1358,10 @@ write_pair_for_checkpoint (CACHETABLE ct, PAIR p) ...@@ -1358,8 +1358,10 @@ write_pair_for_checkpoint (CACHETABLE ct, PAIR p)
p->remove_me = FALSE; p->remove_me = FALSE;
cachetable_write_pair(ct, p); // releases the write lock on the pair cachetable_write_pair(ct, p); // releases the write lock on the pair
} }
else if (p->cq) else if (p->cq) {
workitem_init(&p->asyncwork, NULL, p);
workqueue_enq(p->cq, &p->asyncwork, 1); workqueue_enq(p->cq, &p->asyncwork, 1);
}
else else
rwlock_write_unlock(&p->rwlock); // didn't call cachetable_write_pair so we have to unlock it ourselves. rwlock_write_unlock(&p->rwlock); // didn't call cachetable_write_pair so we have to unlock it ourselves.
write_for_checkpoint_pair = NULL; write_for_checkpoint_pair = NULL;
......
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