diff --git a/plugin/semisync/semisync_source.cc b/plugin/semisync/semisync_source.cc index b9ef8f129edd..af355f1f6cde 100644 --- a/plugin/semisync/semisync_source.cc +++ b/plugin/semisync/semisync_source.cc @@ -1206,6 +1206,11 @@ void ReplSemiSyncMaster::setExportStats() { ((double)rpl_semi_sync_source_net_wait_num)) : 0); + for (size_t i_bins = 0; i_bins < NUMBER_OF_HISTOGRAM_BINS; ++i_bins) { + histogram_trx_wait_values[i_bins] = + latency_histogram_get_count(&histogram_trx_wait, i_bins); + } + unlock(); } @@ -1225,11 +1230,6 @@ int ReplSemiSyncMaster::setWaitSlaveCount(unsigned int new_value) { reportReplyBinlog(ackinfo->binlog_name, ackinfo->binlog_pos); } - for (size_t i_bins = 0; i_bins < NUMBER_OF_HISTOGRAM_BINS; ++i_bins) { - histogram_trx_wait_values[i_bins] = - latency_histogram_get_count(&histogram_trx_wait, i_bins); - } - unlock(); return function_exit(kWho, result); }