Skip to content

Commit

Permalink
set the backend again after recovering v3 backend from snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrtr committed Nov 24, 2021
1 parent e2273f9 commit a0a1468
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/etcdserver/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ func bootstrapBackend(cfg config.ServerConfig, haveWAL bool, st v2store.Store, s
if err != nil {
return nil, err
}
// A snapshot db may have already been recovered, and the old db should have
// already been closed in this case, so we should set the backend again.
ci.SetBackend(be)
}
if beExist {
err = schema.Validate(cfg.Logger, be.BatchTx())
Expand Down

0 comments on commit a0a1468

Please sign in to comment.