diff options
author | Andrei Elkin <andrei.elkin@mariadb.com> | 2018-06-19 18:14:47 +0300 |
---|---|---|
committer | Andrei Elkin <andrei.elkin@mariadb.com> | 2018-06-25 16:45:00 +0300 |
commit | 28e1f1453f12b8b748c31a86a22b336f62002654 (patch) | |
tree | 5f985c1e86323bbdef4ad3485bc8f55119f4876a /sql/log_event.cc | |
parent | 364a20fe0b072fb1d2a9b54a8c4e47a5012f3e97 (diff) | |
download | mariadb-git-28e1f1453f12b8b748c31a86a22b336f62002654.tar.gz |
MDEV-15242 Poor RBR update performance with partitioned tables
Observed and described
partitioned engine execution time difference
between master and slave was caused by excessive invocation
of base_engine::rnd_init which was done also for partitions
uninvolved into Rows-event operation.
The bug's slave slowdown therefore scales with the number of partitions.
Fixed with applying an upstream patch.
References:
----------
https://bugs.mysql.com/bug.php?id=73648
Bug#25687813 REPLICATION REGRESSION WITH RBR AND PARTITIONED TABLES
Diffstat (limited to 'sql/log_event.cc')
-rw-r--r-- | sql/log_event.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sql/log_event.cc b/sql/log_event.cc index 7989db9c687..3638269cbf5 100644 --- a/sql/log_event.cc +++ b/sql/log_event.cc @@ -12135,10 +12135,6 @@ int Rows_log_event::find_row(rpl_group_info *rgi) int error; DBUG_PRINT("info",("locating record using primary key (position)")); - if (!table->file->inited && - (error= table->file->ha_rnd_init_with_error(0))) - DBUG_RETURN(error); - error= table->file->ha_rnd_pos_by_record(table->record[0]); if (error) { |