From 50ef6458e25eadfa5c0bbae5b0898ac20d973e43 Mon Sep 17 00:00:00 2001 From: Josh Black Date: Wed, 27 Sep 2023 16:55:00 -0700 Subject: [PATCH] CE changes for https://github.com/hashicorp/vault-enterprise/pull/4780 --- 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 }