summaryrefslogtreecommitdiff
path: root/sql/slave.cc
diff options
context:
space:
mode:
authorunknown <gbichot@dl145h.mysql.com>2007-02-23 15:32:51 +0100
committerunknown <gbichot@dl145h.mysql.com>2007-02-23 15:32:51 +0100
commit8c07265ce1444b0c6cf0d6938ef934ae7c9f8587 (patch)
tree9305f076f77225fc1f7e0208136f78fb2e007126 /sql/slave.cc
parent9dfb1d9011cf5b31d139d3904a0bf3afae91ad24 (diff)
downloadmariadb-git-8c07265ce1444b0c6cf0d6938ef934ae7c9f8587.tar.gz
the fix for BUG#24432
"INSERT... ON DUPLICATE KEY UPDATE skips auto_increment values" didn't make it into 5.0.36 and 5.1.16, so we need to adjust the bug-detection-based-on-version-number code. Because the rpl tree has a too old version, rpl_insert_id cannot pass, so I disable it (like is already the case in 5.1-rpl for the same reason), and the repl team will re-enable it when they merge 5.0 and 5.1 into their trees (thus getting the right version number). mysql-test/t/disabled.def: rpl_insert_id tests statement-based replication of INSERT ON DUPLICATE KEY UPDATE. This type of INSERT had BUG#24432, which is fixed in 5.0.38; we made the slave detect if it is connected to a <5.0.38 master and if so refuse to replicate. The problem is that this 5.0-rpl tree, even though it will produce the 5.0.38 release, still has a 5.0.36 version in configure.in. Thus rpl_insert_id fails. So I disable it. As soon as the 5.0-rpl tree gets the changesets from the main 5.0, its version will change to 5.0.38 and so the repl team will re-enable the test. sql/slave.cc: the fix for BUG#24432 didn't make it into 5.0.36 and 5.1.16, so we need to adjust the bug-detection-based-on-version-number code.
Diffstat (limited to 'sql/slave.cc')
-rw-r--r--sql/slave.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/slave.cc b/sql/slave.cc
index 37c782a42c3..f61d1e2ed69 100644
--- a/sql/slave.cc
+++ b/sql/slave.cc
@@ -5181,8 +5181,8 @@ bool rpl_master_has_bug(RELAY_LOG_INFO *rli, uint bug_id)
};
static struct st_version_range_for_one_bug versions_for_all_bugs[]=
{
- {24432, { 5, 0, 24 }, { 5, 0, 36 } },
- {24432, { 5, 1, 12 }, { 5, 1, 16 } }
+ {24432, { 5, 0, 24 }, { 5, 0, 38 } },
+ {24432, { 5, 1, 12 }, { 5, 1, 17 } }
};
const uchar *master_ver=
rli->relay_log.description_event_for_exec->server_version_split;