Skip to main content

write_backup_cursor

Function write_backup_cursor 

Source
pub fn write_backup_cursor(wal_dir: &Path, cursor: &BackupCursor) -> Result<()>
Expand description

Writes the backup cursor to a WAL directory.

Uses write-to-temp-then-rename for atomicity.

ยงErrors

Returns an error if the cursor cannot be written.