style(profiles): rewrap the sync comment of backup_to
All checks were successful
PR Check — Frontend / frontend (pull_request) Successful in 1m56s
PR Check — Rust / rust (pull_request) Successful in 3m46s

Resolves #395

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 fbecfffa6e

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]) 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)