summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei <andrei.elkin@mariadb.com>2021-12-18 19:18:13 +0200
committerAndrei <andrei.elkin@mariadb.com>2021-12-18 19:18:13 +0200
commit911cbd7f7721ed115a6cfd1dffefe6dc36a08805 (patch)
tree0afea7491b2488b34f9e4e0bb32f13db56b8aa14
parent479597396cf4acac304096d5c7fd75ce2b0326e8 (diff)
downloadmariadb-git-911cbd7f7721ed115a6cfd1dffefe6dc36a08805.tar.gz
Embedded compilation fixed for the Stop-slave commit.
-rw-r--r--sql/sql_table.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index cb433a9d303..57fbff025fe 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -7316,6 +7316,7 @@ static bool
write_bin_log_start_alter_rollback(THD *thd, uint64 &start_alter_id,
bool &partial_alter, bool if_exists)
{
+#if defined(HAVE_REPLICATION)
if (start_alter_id)
{
start_alter_info *info= thd->rgi_slave->sa_info;
@@ -7359,7 +7360,9 @@ write_bin_log_start_alter_rollback(THD *thd, uint64 &start_alter_id,
if(process_master_state(thd, 1, start_alter_id))
return true;
}
- else if (partial_alter) // Write only if SA written
+ else
+#endif
+ if (partial_alter) // Write only if SA written
{
// Send the rollback message
Write_log_with_flags wlwf(thd, Gtid_log_event::FL_ROLLBACK_ALTER_E1);