Commit 043deaca 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 56a4becc
...@@ -6742,6 +6742,7 @@ int ha_tokudb::delete_all_rows() { ...@@ -6742,6 +6742,7 @@ int ha_tokudb::delete_all_rows() {
if (error) { goto cleanup; } if (error) { goto cleanup; }
if (thd_sql_command(ha_thd()) != SQLCOM_TRUNCATE) { if (thd_sql_command(ha_thd()) != SQLCOM_TRUNCATE) {
share->try_table_lock = true;
error = HA_ERR_WRONG_COMMAND; error = HA_ERR_WRONG_COMMAND;
goto cleanup; goto cleanup;
} }
...@@ -6757,6 +6758,7 @@ int ha_tokudb::delete_all_rows() { ...@@ -6757,6 +6758,7 @@ int ha_tokudb::delete_all_rows() {
share->rows = 0; share->rows = 0;
} }
share->try_table_lock = true;
cleanup: cleanup:
if (txn) { if (txn) {
if (error) { 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