Reset quota manager during shutdown (#9331)
This commit is contained in:
parent
4a5d8fc212
commit
6bd5674345
|
@ -1828,11 +1828,12 @@ func (c *Core) sealInternalWithOptions(grabStateLock, keepHALock, performCleanup
|
|||
}
|
||||
}
|
||||
|
||||
if err := postSealInternal(c); err != nil {
|
||||
c.logger.Error("post seal error", "error", err)
|
||||
return err
|
||||
if err := c.quotaManager.Reset(); err != nil {
|
||||
c.logger.Error("error resetting quota manager", "error", err)
|
||||
}
|
||||
|
||||
postSealInternal(c)
|
||||
|
||||
c.logger.Info("vault is sealed")
|
||||
|
||||
return nil
|
||||
|
|
|
@ -59,7 +59,7 @@ func addExtraCredentialBackends(*Core, map[string]logical.Factory) {}
|
|||
|
||||
func preUnsealInternal(context.Context, *Core) error { return nil }
|
||||
|
||||
func postSealInternal(*Core) error { return nil }
|
||||
func postSealInternal(*Core) {}
|
||||
|
||||
func preSealPhysical(c *Core) {
|
||||
switch c.sealUnwrapper.(type) {
|
||||
|
|
Loading…
Reference in New Issue