Commit 8bb8263e authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:5003], expand fix to include replace into and insert...on duplicate key update

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@44278 c7de825b-a66e-492c-adef-691d508d4ae1
parent 2260d3e4
......@@ -3158,7 +3158,7 @@ void ha_tokudb::start_bulk_insert(ha_rows rows) {
if (share->try_table_lock) {
if (get_prelock_empty(thd) && may_table_be_empty(transaction)) {
if (is_insert_ignore(thd)) {
if (is_insert_ignore(thd) || thd->lex->duplicates != DUP_ERROR) {
acquire_table_lock(transaction, lock_write);
}
else {
......
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