mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
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:
parent
1130bf7f84
commit
44e59b18a6
@ -445,6 +445,7 @@ func (s *v3Manager) modifyLatestRevision(bumpAmount uint64) error {
|
||||
}()
|
||||
|
||||
tx := be.BatchTx()
|
||||
tx.Lock()
|
||||
defer tx.Unlock()
|
||||
|
||||
latest, err := s.unsafeGetLatestRevision(tx)
|
||||
|
Loading…
x
Reference in New Issue
Block a user