diff --git a/vault/raft.go b/vault/raft.go index a4fc13ac6..d32d99a25 100644 --- a/vault/raft.go +++ b/vault/raft.go @@ -315,8 +315,10 @@ func (c *Core) setupRaftActiveNode(ctx context.Context) error { return err } - if err := c.monitorUndoLogs(); err != nil { - return err + if c.UndoLogsEnabled() { + if err := c.monitorUndoLogs(); err != nil { + return err + } } return c.startPeriodicRaftTLSRotate(ctx) }