Commit 9ed2d3f2 authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:4895], protect toku_dictionary_redirect with the MO lock

git-svn-id: file:///svn/toku/tokudb@44049 c7de825b-a66e-492c-adef-691d508d4ae1
parent bfa37931
...@@ -2956,7 +2956,9 @@ toku_test_db_redirect_dictionary(DB * db, char * dname_of_new_file, DB_TXN *dbtx ...@@ -2956,7 +2956,9 @@ toku_test_db_redirect_dictionary(DB * db, char * dname_of_new_file, DB_TXN *dbtx
assert_zero(r); assert_zero(r);
new_iname_in_env = iname_dbt.data; 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); r = toku_dictionary_redirect(new_iname_in_env, brt, tokutxn);
toku_multi_operation_client_unlock();
toku_free(new_iname_in_env); toku_free(new_iname_in_env);
return r; return r;
......
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