summaryrefslogtreecommitdiff
path: root/sql/table.cc
diff options
context:
space:
mode:
authorThirunarayanan Balathandayuthapani <thiru@mariadb.com>2021-11-07 04:41:35 +0530
committerThirunarayanan Balathandayuthapani <thiru@mariadb.com>2021-11-07 04:41:35 +0530
commit8c9cc2fb6eb2b3841dc34b40d6e936a322268148 (patch)
tree8fdd1726b933d81d07ca7bfcdc60785bc5c7bfab /sql/table.cc
parentd20de4d447c70512f915fca6d78b9a77bbaeb4c7 (diff)
downloadmariadb-git-8c9cc2fb6eb2b3841dc34b40d6e936a322268148.tar.gz
MDEV-26956 LeakSanitizer/Valgrind errors in trx_mod_table_time_t::start_bulk_insert upon adding system versioningbb-10.7-MDEV-26956
InnoDB fails to apply buffered insert operation for 'mysql/transaction_registry' table during system versioning DDL. To avoid this, DDL calls extra(HA_EXTRA_IGNORE_INSERT) to inform the InnoDB for applying the buffered insert operation.
Diffstat (limited to 'sql/table.cc')
-rw-r--r--sql/table.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/table.cc b/sql/table.cc
index df94cac6475..b183ebd3254 100644
--- a/sql/table.cc
+++ b/sql/table.cc
@@ -9711,6 +9711,9 @@ bool TR_table::update(ulonglong start_id, ulonglong end_id)
int error= table->file->ha_write_row(table->record[0]);
if (unlikely(error))
table->file->print_error(error, MYF(0));
+ /* extra() is used to apply the bulk insert operation
+ on mysql/transaction_registry table */
+ table->file->extra(HA_EXTRA_IGNORE_INSERT);
return error;
}