提交 5b039c45 编写于 作者: O obdev 提交者: ob-robot

[Election] fix election priority memory leak

上级 97d2270c
...@@ -132,9 +132,9 @@ private: ...@@ -132,9 +132,9 @@ private:
bool is_observer_stopped_;// kill -15 bool is_observer_stopped_;// kill -15
bool is_server_stopped_; bool is_server_stopped_;
bool is_zone_stopped_; bool is_zone_stopped_;
common::ObSArray<FailureEvent> fatal_failures_;// negative infos common::ObSEArray<FailureEvent, 3> fatal_failures_;// negative infos
bool is_primary_region_; bool is_primary_region_;
common::ObSArray<FailureEvent> serious_failures_;// negative infos common::ObSEArray<FailureEvent, 3> serious_failures_;// negative infos
share::SCN scn_; share::SCN scn_;
bool is_in_blacklist_; bool is_in_blacklist_;
common::ObStringHolder in_blacklist_reason_; common::ObStringHolder in_blacklist_reason_;
......
...@@ -239,6 +239,8 @@ private:// 定向暴露给友元类 ...@@ -239,6 +239,8 @@ private:// 定向暴露给友元类
} }
LOG_PHASE(TRACE, phase, "compare priority done"); LOG_PHASE(TRACE, phase, "compare priority done");
} }
lhs_priority->~ElectionPriority();
rhs_priority->~ElectionPriority();
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册