Skip to content

Commit

Permalink
Merge pull request #12914 from ptabor/20210430-read-membership
Browse files Browse the repository at this point in the history
No-storeV2: Read membership information from the backend (Part5)
  • Loading branch information
ptabor authored May 4, 2021
2 parents eb128d2 + 205a1a4 commit a3fc535
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/etcdserver/api/membership/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,12 @@ func (c *RaftCluster) Recover(onSet func(*zap.Logger, *semver.Version)) {
c.Lock()
defer c.Unlock()

c.members, c.removed = membersFromStore(c.lg, c.v2store)
if c.be != nil {
c.version = clusterVersionFromBackend(c.lg, c.be)
c.members, c.removed = membersFromBackend(c.lg, c.be)
} else {
c.version = clusterVersionFromStore(c.lg, c.v2store)
c.members, c.removed = membersFromStore(c.lg, c.v2store)
}

if c.be != nil {
Expand Down

0 comments on commit a3fc535

Please sign in to comment.