diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2022-06-03 10:47:34 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2022-06-03 10:47:34 +0300 |
commit | 099b9202a5c0496cc4f4024a6e667fd526664f69 (patch) | |
tree | 331c9216e2d756744817bce16eba32707a62e211 | |
parent | 91d5fffa0796b8208c3d6633c8f296da8914af4d (diff) | |
download | mariadb-git-099b9202a5c0496cc4f4024a6e667fd526664f69.tar.gz |
MDEV-27697 fixup: Exclude debug code from non-debug builds
-rw-r--r-- | sql/slave.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/slave.cc b/sql/slave.cc index 749aad5d683..60a62d71cf6 100644 --- a/sql/slave.cc +++ b/sql/slave.cc @@ -1,5 +1,5 @@ /* Copyright (c) 2000, 2017, Oracle and/or its affiliates. - Copyright (c) 2009, 2020, MariaDB Corporation + Copyright (c) 2009, 2022, MariaDB Corporation This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -6586,8 +6586,8 @@ static int queue_event(Master_info* mi,const char* buf, ulong event_len) can be satisfied only with the strict mode that ensures against "genuine" gtid duplicates. */ - rpl_gtid *gtid_in_slave_state= - mi->gtid_current_pos.find(mi->last_queued_gtid.domain_id); + IF_DBUG(rpl_gtid *gtid_in_slave_state= + mi->gtid_current_pos.find(mi->last_queued_gtid.domain_id),); // Slave gtid state must not have updated yet to the last received gtid. DBUG_ASSERT((mi->using_gtid == Master_info::USE_GTID_NO || |