Skip to content

Commit b0a3307

Browse files
committed
Execute the same validation for TXN
This commit will ensure all members execute the same validation for TXN by not removing range requests from TXN. Ref patch: ahrtr@76ac23f Signed-off-by: ArkaSaha30 <[email protected]>
1 parent 7b429f9 commit b0a3307

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

server/etcdserver/server.go

-3
Original file line numberDiff line numberDiff line change
@@ -1967,9 +1967,6 @@ func (s *EtcdServer) applyEntryNormal(e *raftpb.Entry, shouldApplyV3 membership.
19671967

19681968
needResult := s.w.IsRegistered(id)
19691969
if needResult || !noSideEffect(&raftReq) {
1970-
if !needResult && raftReq.Txn != nil {
1971-
removeNeedlessRangeReqs(raftReq.Txn)
1972-
}
19731970
ar = s.applyInternalRaftRequest(&raftReq, shouldApplyV3)
19741971
}
19751972

0 commit comments

Comments
 (0)