diff --git a/src/logservice/leader_coordinator/election_priority_impl/election_priority_impl.h b/src/logservice/leader_coordinator/election_priority_impl/election_priority_impl.h index 57e8da22d87c36e43044064396a5032d2c1de3d6..60efde73f382f53262fad9473d7df89080c6b39f 100644 --- a/src/logservice/leader_coordinator/election_priority_impl/election_priority_impl.h +++ b/src/logservice/leader_coordinator/election_priority_impl/election_priority_impl.h @@ -132,9 +132,9 @@ private: bool is_observer_stopped_;// kill -15 bool is_server_stopped_; bool is_zone_stopped_; - common::ObSArray fatal_failures_;// negative infos + common::ObSEArray fatal_failures_;// negative infos bool is_primary_region_; - common::ObSArray serious_failures_;// negative infos + common::ObSEArray serious_failures_;// negative infos share::SCN scn_; bool is_in_blacklist_; common::ObStringHolder in_blacklist_reason_; diff --git a/src/logservice/palf/election/algorithm/election_impl.h b/src/logservice/palf/election/algorithm/election_impl.h index 62bd57ec05d78892b5f4946feb6bcc39857f55a8..7de7487f09c30bcce57a74cb7f447b2dec8d9452 100644 --- a/src/logservice/palf/election/algorithm/election_impl.h +++ b/src/logservice/palf/election/algorithm/election_impl.h @@ -239,6 +239,8 @@ private:// 定向暴露给友元类 } LOG_PHASE(TRACE, phase, "compare priority done"); } + lhs_priority->~ElectionPriority(); + rhs_priority->~ElectionPriority(); } } }