From 1f1ead0dc72e24ecaf5abe3784aac79cfbd5124b Mon Sep 17 00:00:00 2001 From: Josh Black Date: Wed, 11 Oct 2023 10:44:33 -0700 Subject: [PATCH] CE changes for https://github.com/hashicorp/vault-enterprise/pull/4780 (#23362) --- vault/core_util.go | 1 + vault/raft.go | 1 + 2 files changed, 2 insertions(+) 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 }