diff --git a/store/store.go b/store/store.go index 7c002c8be..6265d291c 100644 --- a/store/store.go +++ b/store/store.go @@ -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()