Browse Source

Merge pull request #2267 from xiang90/fix_snapconf

etcdserver: save confstate when apply new snapshot
Xiang Li 11 years ago
parent
commit
9460b6efda
1 changed files with 1 additions and 0 deletions
  1. 1 0
      etcdserver/server.go

+ 1 - 0
etcdserver/server.go

@@ -387,6 +387,7 @@ func (s *EtcdServer) run() {
 				}
 				s.Cluster.Recover()
 				appliedi = rd.Snapshot.Metadata.Index
+				confState = rd.Snapshot.Metadata.ConfState
 				log.Printf("etcdserver: recovered from incoming snapshot at index %d", snapi)
 			}
 			// TODO(bmizerany): do this in the background, but take