From 76ac23fda65ab27a86139acd5d5941e773531618 Mon Sep 17 00:00:00 2001 From: Benjamin Wang Date: Thu, 3 Oct 2024 18:47:19 +0100 Subject: [PATCH] do not remove range requests from TXN to ensure all members execute the same validation for TXN Signed-off-by: Benjamin Wang --- server/etcdserver/server.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/server/etcdserver/server.go b/server/etcdserver/server.go index ba3a3f3ffe1..a06b01aed9f 100644 --- a/server/etcdserver/server.go +++ b/server/etcdserver/server.go @@ -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) }