Update clientv3/snapshot/v3_snapshot.go

Co-authored-by: Benjamin Wang <wachao@vmware.com>
Signed-off-by: Wenjia Zhang <wenjiazhang@google.com>
This commit is contained in:
Wenjia 2023-07-06 23:06:01 -07:00 committed by Wenjia Zhang
parent 1130bf7f84
commit 44e59b18a6

View File

@ -445,6 +445,7 @@ func (s *v3Manager) modifyLatestRevision(bumpAmount uint64) error {
}()
tx := be.BatchTx()
tx.Lock()
defer tx.Unlock()
latest, err := s.unsafeGetLatestRevision(tx)