From 44e59b18a6d8182d7dc65704c97c2be73ee38b2a Mon Sep 17 00:00:00 2001 From: Wenjia Date: Thu, 6 Jul 2023 23:06:01 -0700 Subject: [PATCH] Update clientv3/snapshot/v3_snapshot.go Co-authored-by: Benjamin Wang Signed-off-by: Wenjia Zhang --- clientv3/snapshot/v3_snapshot.go | 1 + 1 file changed, 1 insertion(+) diff --git a/clientv3/snapshot/v3_snapshot.go b/clientv3/snapshot/v3_snapshot.go index c512c3986ed..cda493aada2 100644 --- a/clientv3/snapshot/v3_snapshot.go +++ b/clientv3/snapshot/v3_snapshot.go @@ -445,6 +445,7 @@ func (s *v3Manager) modifyLatestRevision(bumpAmount uint64) error { }() tx := be.BatchTx() + tx.Lock() defer tx.Unlock() latest, err := s.unsafeGetLatestRevision(tx)