backport of commit 1f1ead0dc7 (#23616)

Co-authored-by: Josh Black <raskchanky@gmail.com>
This commit is contained in:
hc-github-team-secure-vault-core
2023-10-11 14:10:48 -04:00
committed by GitHub
parent 50517c866a
commit c6f75b0826
2 changed files with 2 additions and 0 deletions

View File

@@ -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() {}

View File

@@ -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
}