Set c.standby true in non-HA context. (#2259)
This value is the key for some checks in core logic. In a non-HA environment, if the core was sealed it would never be set back to true.
This commit is contained in:
parent
cb8bbc4fbd
commit
9923c753d0
|
@ -1088,6 +1088,8 @@ func (c *Core) sealInternal() error {
|
||||||
|
|
||||||
// Do pre-seal teardown if HA is not enabled
|
// Do pre-seal teardown if HA is not enabled
|
||||||
if c.ha == nil {
|
if c.ha == nil {
|
||||||
|
// Even in a non-HA context we key off of this for some things
|
||||||
|
c.standby = true
|
||||||
if err := c.preSeal(); err != nil {
|
if err := c.preSeal(); err != nil {
|
||||||
c.logger.Error("core: pre-seal teardown failed", "error", err)
|
c.logger.Error("core: pre-seal teardown failed", "error", err)
|
||||||
return fmt.Errorf("internal error")
|
return fmt.Errorf("internal error")
|
||||||
|
|
Loading…
Reference in New Issue