mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
addresses #1832
have truncate work even if cursors exist on dictionary git-svn-id: file:///svn/mysql/tokudb-engine/src@13297 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
5e3b01efec
commit
a4613d3d6e
1 changed files with 1 additions and 1 deletions
|
@ -5739,7 +5739,7 @@ int ha_tokudb::delete_all_rows() {
|
|||
for (uint i = 0; i < curr_num_DBs; i++) {
|
||||
DB *db = share->key_file[i];
|
||||
u_int32_t row_count = 0;
|
||||
error = db->truncate(db, transaction, &row_count, 0);
|
||||
error = db->truncate(db, transaction, &row_count, DB_TRUNCATE_WITHCURSORS);
|
||||
if (error) {
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue