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 <[email protected]>
Signed-off-by: Wenjia Zhang <[email protected]>
  • Loading branch information
wenjiaswe and ahrtr committed Jul 7, 2023
1 parent 1130bf7 commit 760f569
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 760f569

Please sign in to comment.