Commit f0de114e authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:3997], protect read of cleaner_iterations with cachetable lock to make drd happy

git-svn-id: file:///svn/toku/tokudb@36697 c7de825b-a66e-492c-adef-691d508d4ae1
parent eb6bfea8
......@@ -3655,7 +3655,8 @@ cleaner_thread (void *cachetable_v)
{
CACHETABLE ct = cachetable_v;
assert(ct);
for (u_int32_t i = 0; i < ct->cleaner_iterations; ++i) {
u_int32_t num_iterations = toku_get_cleaner_iterations(ct);
for (u_int32_t i = 0; i < num_iterations; ++i) {
cachetable_lock(ct);
PAIR best_pair = NULL;
int n_seen = 0;
......
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