[t:4472], add table lock for truncate

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@39739 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Zardosht Kasheff 2013-04-17 00:02:08 -04:00 committed by Yoni Fogel
parent d07d0fba79
commit 164748a7e2

View file

@ -7851,6 +7851,11 @@ int ha_tokudb::delete_all_rows() {
txn
);
if (error) { goto cleanup; }
error = share->key_file[i]->pre_acquire_table_lock(
share->key_file[i],
txn
);
if (error) { goto cleanup; }
}
for (uint i = 0; i < curr_num_DBs; i++) {
error = truncate_dictionary(i, txn);