Directly manipulating the checkpoint DB is scary, but migrating logs is a legitimate use case. What if operators could do something like this instead:
Export the checkpoint for LOG_ID to file, and mark the log as frozen in checkpoint.db to prevent further updates on this instance:
$ sunlight-checkpoint export checkpoint.db LOG_ID file
Import the checkpoint from file to checkpoint.db, failing if checkpoint.db already contains a different checkpoint for the log:
$ sunlight-checkpoint import file checkpoint.db
Directly manipulating the checkpoint DB is scary, but migrating logs is a legitimate use case. What if operators could do something like this instead:
Export the checkpoint for LOG_ID to file, and mark the log as frozen in checkpoint.db to prevent further updates on this instance:
Import the checkpoint from file to checkpoint.db, failing if checkpoint.db already contains a different checkpoint for the log: