Tencent / phxpaxos

The Paxos library implemented in C++ that has been used in the WeChat production environment.
Other
3.36k stars 863 forks source link

CheckpointSender 线程回收问题 #195

Open huangyu6572 opened 2 years ago

huangyu6572 commented 2 years ago
  1. CheckpointSender 启动后的线程回收 , checkpoint_sender.cpp stop函数内部的条件 if (m_bIsStarted && ! m_bIsEnded) { m_bIsEnd = true; join(); }

需要改为 if (m_bIsStarted ) { m_bIsEnd = true; join(); } m_bIsEnded初始状态为false,结束为true,都有可能导致不能正常退出线程

huangyu6572 commented 2 years ago

https://github.com/Tencent/phxpaxos/issues/83