File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -9783,16 +9783,18 @@ TC_LOG_BINLOG::set_status_variables(THD *thd)
9783
9783
mysql_mutex_lock (&LOCK_commit_ordered);
9784
9784
binlog_status_var_num_commits= this ->num_commits ;
9785
9785
binlog_status_var_num_group_commits= this ->num_group_commits ;
9786
- binlog_status_group_commit_reason_count= this ->group_commit_reason_count ;
9787
- binlog_status_group_commit_reason_usec= this ->group_commit_reason_usec ;
9788
- binlog_status_group_commit_reason_transaction= this ->group_commit_reason_transaction ;
9789
- binlog_status_group_commit_reason_immediate= this ->group_commit_reason_immediate ;
9790
9786
if (!have_snapshot)
9791
9787
{
9792
9788
set_binlog_snapshot_file (last_commit_pos_file);
9793
9789
binlog_snapshot_position= last_commit_pos_offset;
9794
9790
}
9795
9791
mysql_mutex_unlock (&LOCK_commit_ordered);
9792
+ mysql_mutex_lock (&LOCK_prepare_ordered);
9793
+ binlog_status_group_commit_reason_count= this ->group_commit_reason_count ;
9794
+ binlog_status_group_commit_reason_usec= this ->group_commit_reason_usec ;
9795
+ binlog_status_group_commit_reason_transaction= this ->group_commit_reason_transaction ;
9796
+ binlog_status_group_commit_reason_immediate= this ->group_commit_reason_immediate ;
9797
+ mysql_mutex_unlock (&LOCK_prepare_ordered);
9796
9798
9797
9799
if (have_snapshot)
9798
9800
{
You can’t perform that action at this time.
0 commit comments