From faa08f65640c68327679fa93a68634d153acc15f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Mon, 4 Nov 2024 14:48:28 +0100 Subject: [PATCH] sync: pull: reword last_sync_time resync comment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit make it a bit easier to parse and include some examples of what the resync might be able to pick up. Signed-off-by: Fabian Grünbichler --- src/server/pull.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/server/pull.rs b/src/server/pull.rs index 0afb16bc..d9584776 100644 --- a/src/server/pull.rs +++ b/src/server/pull.rs @@ -528,8 +528,9 @@ async fn pull_group( .enumerate() .filter(|&(pos, ref dir)| { source_snapshots.insert(dir.time); - // Note: Last sync times final snapshot might not have been completely - // done yet on the source side, keep it include for a resync. + // Note: the snapshot represented by `last_sync_time` might be missing its backup log + // or post-backup verification state if those were not yet available during the last + // sync run, always resync it if last_sync_time > dir.time { already_synced_skip_info.update(dir.time); return false;