Skip to content

Commit

Permalink
Fix the issues reported by Valgrind
Browse files Browse the repository at this point in the history
  • Loading branch information
wangbin579 committed Oct 21, 2024
1 parent bcd9b7e commit 381ad4d
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions plugin/group_replication/src/certifier.cc
Original file line number Diff line number Diff line change
@@ -284,6 +284,11 @@ Certifier::Certifier()
mysql_mutex_init(key_GR_LOCK_certification_info, &LOCK_certification_info,
MY_MUTEX_INIT_FAST);
mysql_mutex_init(key_GR_LOCK_cert_members, &LOCK_members, MY_MUTEX_INIT_FAST);

for (int i = 0; i < REPLAY_CAL_ARRAY; i++) {
replay_cal_hash_item *hash_item = &(replayed_cal_array[i]);
hash_item->number = 0;
}
}

Certifier::~Certifier() {
Original file line number Diff line number Diff line change
@@ -41,7 +41,8 @@ Certification_handler::Certification_handler()
applier_module_thd(nullptr),
group_sidno(0),
transaction_context_packet(nullptr),
transaction_context_pevent(nullptr) {}
transaction_context_pevent(nullptr),
m_view_change_event_on_wait(false) {}

Certification_handler::~Certification_handler() {
delete transaction_context_pevent;

0 comments on commit 381ad4d

Please sign in to comment.