minor clean up

release-0.4
Xiang Li 2013-09-28 17:41:45 -07:00
parent 33e010ebd8
commit 4b2e53f29e
1 changed files with 2 additions and 2 deletions

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