Skip to content

checkpoint: Allow creation of checkpoints on read-only DBs #965

@itsbilal

Description

@itsbilal

Currently, the code in DB.Checkpoint requires some variables to be non-zero that are only set in !opts.ReadOnly conditionals in Open(). In theory it should definitely be possible (and easy) to do a checkpoint of a read-only Pebble instance. As part of this issue, any dependencies between the non-readonly code, and Checkpoint would need to be untangled.

Once this change is in, the db checkpoint tool could also stop creating a writable pebble instance.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions