mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
First push for WL#3146 "less locking in auto_increment". It is a 0-real-change patch.
New prototype for get_auto_increment() (but new arguments not yet used), to be able to reserve a finite interval of auto_increment values from cooperating engines. A hint on how many values to reserve is found in handler::estimation_rows_to_insert, filled by ha_start_bulk_insert(), new wrapper around start_bulk_insert(). NOTE: this patch changes nothing, for all engines. But it makes the API ready for those engines which will want to do reservation. More csets will come to complete WL#3146.
This commit is contained in:
@@ -6134,7 +6134,7 @@ copy_data_between_tables(TABLE *from,TABLE *to,
|
||||
MODE_STRICT_ALL_TABLES));
|
||||
|
||||
from->file->info(HA_STATUS_VARIABLE);
|
||||
to->file->start_bulk_insert(from->file->records);
|
||||
to->file->ha_start_bulk_insert(from->file->records);
|
||||
|
||||
save_sql_mode= thd->variables.sql_mode;
|
||||
|
||||
@@ -6254,7 +6254,7 @@ copy_data_between_tables(TABLE *from,TABLE *to,
|
||||
free_io_cache(from);
|
||||
delete [] copy; // This is never 0
|
||||
|
||||
if (to->file->end_bulk_insert() && error <= 0)
|
||||
if (to->file->ha_end_bulk_insert() && error <= 0)
|
||||
{
|
||||
to->file->print_error(my_errno,MYF(0));
|
||||
error=1;
|
||||
|
Reference in New Issue
Block a user