Commit a4613d3d authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

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
parent 5e3b01ef
...@@ -5739,7 +5739,7 @@ int ha_tokudb::delete_all_rows() { ...@@ -5739,7 +5739,7 @@ int ha_tokudb::delete_all_rows() {
for (uint i = 0; i < curr_num_DBs; i++) { for (uint i = 0; i < curr_num_DBs; i++) {
DB *db = share->key_file[i]; DB *db = share->key_file[i];
u_int32_t row_count = 0; 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) { if (error) {
break; break;
} }
......
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