summaryrefslogtreecommitdiff
path: root/storage/innobase/include
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2019-08-12 18:50:54 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2019-08-12 18:50:54 +0300
commit609ea2f37b8169a7c282fe2d607c2412467ccbbb (patch)
treece5f8317d4d659641799c560fe074abcc24d6ac6 /storage/innobase/include
parentbe33124c9dc284c4409d02e5405de568b467a167 (diff)
downloadmariadb-git-609ea2f37b8169a7c282fe2d607c2412467ccbbb.tar.gz
MDEV-17614: After-merge fix
MDEV-17614 flags INSERT…ON DUPLICATE KEY UPDATE unsafe for statement-based replication when there are multiple unique indexes. This correctly fixes something whose attempted fix in MySQL 5.7 in mysql/mysql-server@c93b0d9a972cb6f98fd445f2b69d924350f9128a caused lock conflicts. That change was reverted in MySQL 5.7.26 in mysql/mysql-server@066b6fdd433aa6673622341f1a2f0a3a20018043 (with a substantial amount of other changes). In MDEV-17073 we already disabled the unfortunate MySQL change when statement-based replication was not being used. Now, thanks to MDEV-17614, we can actually remove the change altogether. This reverts commit 8a346f31b913daa011085afec2b2d38450c73e00 (MDEV-17073) and mysql/mysql-server@c93b0d9a972cb6f98fd445f2b69d924350f9128a while keeping the test cases.
Diffstat (limited to 'storage/innobase/include')
-rw-r--r--storage/innobase/include/ha_prototypes.h3
-rw-r--r--storage/innobase/include/row0ins.h4
2 files changed, 0 insertions, 7 deletions
diff --git a/storage/innobase/include/ha_prototypes.h b/storage/innobase/include/ha_prototypes.h
index 7fd0de92562..693dcd15163 100644
--- a/storage/innobase/include/ha_prototypes.h
+++ b/storage/innobase/include/ha_prototypes.h
@@ -121,9 +121,6 @@ thd_is_replication_slave_thread(
/*============================*/
THD* thd); /*!< in: thread handle */
-/** @return whether statement-based replication is active */
-extern "C" int thd_rpl_stmt_based(const THD* thd);
-
/******************************************************************//**
Returns true if the transaction this thread is processing has edited
non-transactional tables. Used by the deadlock detector when deciding
diff --git a/storage/innobase/include/row0ins.h b/storage/innobase/include/row0ins.h
index 2d4e9f67562..3a85d7a21c4 100644
--- a/storage/innobase/include/row0ins.h
+++ b/storage/innobase/include/row0ins.h
@@ -196,10 +196,6 @@ struct ins_node_t{
entry_list and sys fields are stored here;
if this is NULL, entry list should be created
and buffers for sys fields in row allocated */
- dict_index_t* duplicate;
- /* This is the first index that reported
- DB_DUPLICATE_KEY. Used in the case of REPLACE
- or INSERT ... ON DUPLICATE UPDATE. */
ulint magic_n;
};