[t:5041], fix load data local on main

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@44399 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Zardosht Kasheff 2013-04-17 00:02:12 -04:00 committed by Yoni Fogel
parent f332f537c2
commit 19b43690e0

View file

@ -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) || thd->lex->duplicates != DUP_ERROR) {
if (using_ignore || is_insert_ignore(thd) || thd->lex->duplicates != DUP_ERROR) {
acquire_table_lock(transaction, lock_write);
}
else {