Commit 5c035fc0 authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

refs #5672 add invariant to do_partial_fetch


git-svn-id: file:///svn/toku/tokudb@50536 c7de825b-a66e-492c-adef-691d508d4ae1
parent 943a0af0
......@@ -1187,6 +1187,7 @@ do_partial_fetch(
assert(!p->dirty);
pair_lock(p);
invariant(p->value_rwlock.writers());
nb_mutex_lock(&p->disk_nb_mutex, p->mutex);
pair_unlock(p);
int r = pf_callback(p->value_data, p->disk_data, read_extraargs, cachefile->fd, &new_attr);
......
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