mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
minor clean up
This commit is contained in:
@@ -374,10 +374,10 @@ func (s *Store) Save() ([]byte, error) {
|
||||
s.worldLock.Lock()
|
||||
|
||||
clonedStore := New()
|
||||
clonedStore.Root = s.Root.Clone()
|
||||
clonedStore.WatcherHub = s.WatcherHub.clone()
|
||||
clonedStore.Index = s.Index
|
||||
clonedStore.Term = s.Term
|
||||
clonedStore.Root = s.Root.Clone()
|
||||
clonedStore.WatcherHub = s.WatcherHub.clone()
|
||||
clonedStore.Stats = s.Stats.clone()
|
||||
|
||||
s.worldLock.Unlock()
|
||||
|
||||
Reference in New Issue
Block a user