From 0975bcfcd289f324493c415c54370ceb42c78fa5 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 --- 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 c512c3986ed2..cda493aada2b 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)