style(profiles): rewrap the sync comment of backup_to
All checks were successful
PR Check — Frontend / frontend (pull_request) Successful in 2m1s
PR Check — Rust / rust (pull_request) Successful in 4m1s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
le king fu 2026-10-12 20:27:26 -04:00
parent 419b20e769
commit a46a94a314

View file

@ -485,8 +485,8 @@ pub fn backup_to(conn: &Connection, dir: &Path, stem: &str, first_pending: i64)
conn.execute("VACUUM INTO ?1", [tmp])
.map_err(|e| format!("backup_failed: {}", e))?;
// 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
// to flush a file opened read-only.
// copy a power cut could still truncate, nor replace a good one with it.
// Write access: Windows refuses to flush a file opened read-only.
fs::OpenOptions::new()
.write(true)
.open(&tmp_path)