disable undo logs by default for 1.12.0 (#17453)

This commit is contained in:
Josh Black 2022-10-07 08:47:40 -07:00 committed by GitHub
parent df690ea414
commit ad1503ebcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

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