From cdcd2828514185fbc51ec60aa59ececac0d32588 Mon Sep 17 00:00:00 2001 From: eileenaaa Date: Tue, 19 Aug 2025 17:58:00 +0800 Subject: [PATCH] fix deep copy committed uids --- posting/list.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posting/list.go b/posting/list.go index 2a3638cca01..7c0f6749df7 100644 --- a/posting/list.go +++ b/posting/list.go @@ -1010,7 +1010,7 @@ func (l *List) setMutationAfterCommit(startTs, commitTs uint64, pl *pb.PostingLi if refresh { newMap := make(map[uint64]*pb.Posting, len(l.mutationMap.committedUids)) for uid, post := range l.mutationMap.committedUids { - newMap[uid] = post + newMap[uid] = proto.Clone(post).(*pb.Posting) } l.mutationMap.committedUids = newMap }