Skip to content

Commit 0dacffc

Browse files
author
Venkatesh Duggirala
committed
Bug#27041759 RESET MASTER WHILE A TRX IN BGC(AFTER FLUSH)
LEAVING SERVER IN BAD GTID STATE Postpush fix: Fixing GR test script failure. Unlocking of global read lock is not happening in an error case.
1 parent f77e06a commit 0dacffc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sql/rpl_master.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ bool reset_master(THD *thd, bool unlock_global_read_lock) {
885885
thd->set_skip_readonly_check();
886886
if (is_group_replication_running()) {
887887
my_error(ER_CANT_RESET_MASTER, MYF(0), "Group Replication is running");
888-
return true;
888+
goto end;
889889
}
890890

891891
if (mysql_bin_log.is_open()) {
@@ -907,6 +907,7 @@ bool reset_master(THD *thd, bool unlock_global_read_lock) {
907907
global_sid_lock->unlock();
908908
}
909909

910+
end:
910911
/*
911912
Unlock the global read lock (which was aquired by this
912913
session as part of RESET MASTER) before running the hook

0 commit comments

Comments
 (0)