minor clean up
parent
33e010ebd8
commit
4b2e53f29e
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue