Commit 6217269e authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:1938], make "delete from table" transactional by making it really really...

[t:1938], make "delete from table" transactional by making it really really slow, by deleting all elements one by one, through MySQL

git-svn-id: file:///svn/mysql/tokudb-engine/src@14084 c7de825b-a66e-492c-adef-691d508d4ae1
parent 4429dcee
...@@ -5715,6 +5715,11 @@ int ha_tokudb::delete_all_rows() { ...@@ -5715,6 +5715,11 @@ int ha_tokudb::delete_all_rows() {
int error = 0; int error = 0;
uint curr_num_DBs = 0; uint curr_num_DBs = 0;
if (thd_sql_command(ha_thd()) != SQLCOM_TRUNCATE) {
error = HA_ERR_WRONG_COMMAND;
goto cleanup;
}
// //
// prelock so we know right away if there are any potential // prelock so we know right away if there are any potential
// deadlocks // deadlocks
......
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