mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
[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:
parent
d07d0fba79
commit
164748a7e2
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue