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:
Zardosht Kasheff 2009-07-16 14:10:51 +00:00 committed by Yoni Fogel
parent 5e3b01efec
commit a4613d3d6e

View file

@ -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;
}