style(profiles): rewrap the sync comment of backup_to
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
419b20e769
commit
a46a94a314
1 changed files with 2 additions and 2 deletions
|
|
@ -485,8 +485,8 @@ pub fn backup_to(conn: &Connection, dir: &Path, stem: &str, first_pending: i64)
|
||||||
conn.execute("VACUUM INTO ?1", [tmp])
|
conn.execute("VACUUM INTO ?1", [tmp])
|
||||||
.map_err(|e| format!("backup_failed: {}", e))?;
|
.map_err(|e| format!("backup_failed: {}", e))?;
|
||||||
// VACUUM INTO does not sync its output; the rename must not publish a
|
// VACUUM INTO does not sync its output; the rename must not publish a
|
||||||
// copy a power cut could still truncate (nor replace a good one with it). Write access: Windows refuses
|
// copy a power cut could still truncate, nor replace a good one with it.
|
||||||
// to flush a file opened read-only.
|
// Write access: Windows refuses to flush a file opened read-only.
|
||||||
fs::OpenOptions::new()
|
fs::OpenOptions::new()
|
||||||
.write(true)
|
.write(true)
|
||||||
.open(&tmp_path)
|
.open(&tmp_path)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue