From a4613d3d6e03ddf988159723bc4080b879721284 Mon Sep 17 00:00:00 2001 From: Zardosht Kasheff Date: Thu, 16 Jul 2009 14:10:51 +0000 Subject: [PATCH] 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 --- storage/tokudb/ha_tokudb.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/tokudb/ha_tokudb.cc b/storage/tokudb/ha_tokudb.cc index 718d818e634..9ca7d8d439a 100644 --- a/storage/tokudb/ha_tokudb.cc +++ b/storage/tokudb/ha_tokudb.cc @@ -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; }