Skip to content

Commit

Permalink
do not remove range requests from TXN to ensure all members execute t…
Browse files Browse the repository at this point in the history
…he same validation for TXN

Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
  • Loading branch information
ahrtr committed Oct 3, 2024
1 parent c1976a6 commit 76ac23f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions server/etcdserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1966,9 +1966,6 @@ func (s *EtcdServer) applyEntryNormal(e *raftpb.Entry, shouldApplyV3 membership.

needResult := s.w.IsRegistered(id)
if needResult || !noSideEffect(&raftReq) {
if !needResult && raftReq.Txn != nil {
removeNeedlessRangeReqs(raftReq.Txn)
}
ar = s.applyInternalRaftRequest(&raftReq, shouldApplyV3)
}

Expand Down

0 comments on commit 76ac23f

Please sign in to comment.