diff --git a/vault/core_util.go b/vault/core_util.go index 18e12de23b38..70e533bda584 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) teardownReplicationResolverHandler() {} 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 }