Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

db: ensure checkpointed database with WAL failover is openable #4130

Merged
merged 1 commit into from
Nov 4, 2024

Commits on Nov 4, 2024

  1. db: ensure checkpointed database with WAL failover is openable

    This commit adapts Checkpoint to omit the [WAL Failover] section of the OPTIONS
    file from the checkpoint's OPTIONS file. The WAL failover configuration is
    specific to the original database. We want our checkpoints to be fully
    encapsulated and complete, so we copy WAL files from both the primary WAL
    directory and the failover secondary. This means a database opening the
    checkpoint does not need the secondary directory to be provided as a
    WALRecoveryDir.
    
    With this commit, Checkpoint parses the old OPTIONS file and copies its
    contents verbatim to a new file in the checkpointed directory. If the old
    OPTIONS file had a WAL Failover configuration, its entire section is commented
    out within the checkpoint.
    jbowens committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    1154cb4 View commit details
    Browse the repository at this point in the history