Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
raskchanky authored Oct 11, 2023
1 parent 4404300 commit 1f1ead0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions vault/core_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
1 change: 1 addition & 0 deletions vault/raft.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 1f1ead0

Please sign in to comment.