mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 03:51:50 +01:00
[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
This commit is contained in:
parent
8dc54da03b
commit
34dccd5a69
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue