diff --git a/vault/core_util.go b/vault/core_util.go index 7b93e1d67426..243ef99fb1b4 100644 --- a/vault/core_util.go +++ b/vault/core_util.go @@ -74,6 +74,7 @@ func (c *Core) barrierViewForNamespace(namespaceId string) (*BarrierView, error) func (c *Core) UndoLogsEnabled() bool { return false } func (c *Core) UndoLogsPersisted() (bool, error) { return false, nil } +func (c *Core) EnableUndoLogs() {} func (c *Core) PersistUndoLogs() error { return nil } func (c *Core) ReindexStage() *uint32 { return nil } diff --git a/vault/raft.go b/vault/raft.go index 1353ad3f35db..5dd11e997673 100644 --- a/vault/raft.go +++ b/vault/raft.go @@ -198,6 +198,7 @@ func (c *Core) monitorUndoLogs() error { } if persisted { + c.EnableUndoLogs() logger.Debug("undo logs are safe, no need to check any more") return nil }