minor clean up

This commit is contained in:
Xiang Li
2013-09-28 17:41:45 -07:00
parent 33e010ebd8
commit 4b2e53f29e

View File

@@ -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()