Commit 3d75064d authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:2491], set share->try_table_lock to true in call to delete_all_rows

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@18881 c7de825b-a66e-492c-adef-691d508d4ae1
parent c9d96cf9
......@@ -6742,6 +6742,7 @@ int ha_tokudb::delete_all_rows() {
if (error) { goto cleanup; }
if (thd_sql_command(ha_thd()) != SQLCOM_TRUNCATE) {
share->try_table_lock = true;
error = HA_ERR_WRONG_COMMAND;
goto cleanup;
}
......@@ -6757,6 +6758,7 @@ int ha_tokudb::delete_all_rows() {
share->rows = 0;
}
share->try_table_lock = true;
cleanup:
if (txn) {
if (error) {
......
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