Skip to content

Commit

Permalink
Update clientv3/snapshot/v3_snapshot.go
Browse files Browse the repository at this point in the history
Co-authored-by: Benjamin Wang <wachao@vmware.com>
  • Loading branch information
wenjiaswe and ahrtr authored Jul 7, 2023
1 parent f7d6ea8 commit 0975bcf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clientv3/snapshot/v3_snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ func (s *v3Manager) modifyLatestRevision(bumpAmount uint64) error {
}()

tx := be.BatchTx()
tx.Lock()
defer tx.Unlock()

latest, err := s.unsafeGetLatestRevision(tx)
Expand Down

0 comments on commit 0975bcf

Please sign in to comment.