Browse Source

minor clean up

Xiang Li 12 years ago
parent
commit
4b2e53f29e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      store/store.go

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