mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
#245 use row estimate parameter to start_bulk_insert to decide if a loader is used
This commit is contained in:
parent
cb0ae1663a
commit
bf21d6334d
1 changed files with 1 additions and 1 deletions
|
@ -3250,7 +3250,7 @@ void ha_tokudb::start_bulk_insert(ha_rows rows) {
|
|||
num_DBs_locked_in_bulk = true;
|
||||
lock_count = 0;
|
||||
|
||||
if (share->try_table_lock) {
|
||||
if ((rows == 0 || rows > 1) && share->try_table_lock) {
|
||||
if (get_prelock_empty(thd) && may_table_be_empty(transaction)) {
|
||||
if (using_ignore || is_insert_ignore(thd) || thd->lex->duplicates != DUP_ERROR) {
|
||||
acquire_table_lock(transaction, lock_write);
|
||||
|
|
Loading…
Reference in a new issue