Преглед изворни кода

Merge pull request #10879 from lzhfromustc/master

etcdserver: modify a read operation to avoid potential race
Xiang Li пре 6 година
родитељ
комит
0af16979f8
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      etcdserver/server.go

+ 1 - 1
etcdserver/server.go

@@ -1291,7 +1291,7 @@ func (s *EtcdServer) applySnapshot(ep *etcdProgress, apply *apply) {
 		plog.Info("finished recovering store v2")
 	}
 
-	s.cluster.SetBackend(s.be)
+	s.cluster.SetBackend(newbe)
 
 	if lg != nil {
 		lg.Info("restoring cluster configuration")