Skip to content

Commit

Permalink
bug-fix InstallSnapshot重复的问题 (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
beanljun authored Aug 29, 2024
1 parent a5541d7 commit ec9e4c3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/raftCore/raft.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,6 @@ void Raft::InstallSnapshot(const raftRpcProctoc::InstallSnapshotRequest* args,
msg.SnapshotTerm = args->lastsnapshotincludeterm();
msg.SnapshotIndex = args->lastsnapshotincludeindex();

applyChan->Push(msg);
std::thread t(&Raft::pushMsgToKvServer, this, msg); // 创建新线程并执行b函数,并传递参数
t.detach();
//看下这里能不能再优化
Expand Down

0 comments on commit ec9e4c3

Please sign in to comment.