浏览代码

etcdserver: save confstate when apply new snapshot

Xiang Li 11 年之前
父节点
当前提交
6e1aecfc6f
共有 1 个文件被更改,包括 1 次插入0 次删除
  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