diff options
Diffstat (limited to 'sql/rpl_mi.cc')
-rw-r--r-- | sql/rpl_mi.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/rpl_mi.cc b/sql/rpl_mi.cc index 43a02147496..f3c87517f21 100644 --- a/sql/rpl_mi.cc +++ b/sql/rpl_mi.cc @@ -1570,6 +1570,8 @@ uint any_slave_sql_running(bool already_locked) if (!already_locked) mysql_mutex_lock(&LOCK_active_mi); + else + mysql_mutex_assert_owner(&LOCK_active_mi); if (unlikely(abort_loop || !master_info_index)) count= 1; else |