mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 03:51:50 +01:00
[t:4895], protect toku_dictionary_redirect with the MO lock
git-svn-id: file:///svn/toku/tokudb@44049 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
bfa379314a
commit
9ed2d3f20f
1 changed files with 2 additions and 0 deletions
|
@ -2956,7 +2956,9 @@ toku_test_db_redirect_dictionary(DB * db, char * dname_of_new_file, DB_TXN *dbtx
|
|||
assert_zero(r);
|
||||
new_iname_in_env = iname_dbt.data;
|
||||
|
||||
toku_multi_operation_client_lock(); //Must hold MO lock for dictionary_redirect.
|
||||
r = toku_dictionary_redirect(new_iname_in_env, brt, tokutxn);
|
||||
toku_multi_operation_client_unlock();
|
||||
|
||||
toku_free(new_iname_in_env);
|
||||
return r;
|
||||
|
|
Loading…
Add table
Reference in a new issue