From d809ddee449549f44148b0d040a27501a2faf2d4 Mon Sep 17 00:00:00 2001 From: Cameron Cordes Date: Fri, 1 May 2026 18:01:01 +0000 Subject: [PATCH] library_maintenance: clarify orphan-gc log wording MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "marked 2 new" parses as "2 new files" on first read — but the unit is content_hashes, and the action is observing them as orphaned (becoming-deleted, not appearing). Reword: "{} new orphan hash(es) marked, {} revived" instead of "marked {} new, revived {}". Also pluralize the deleted counts ("row(s)") and append the pending-set size to the success log so a tick that both deletes and re-marks doesn't lose the trailing-state context. No behavior change. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/library_maintenance.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/library_maintenance.rs b/src/library_maintenance.rs index 035bb8a..8fd6059 100644 --- a/src/library_maintenance.rs +++ b/src/library_maintenance.rs @@ -371,7 +371,7 @@ pub fn run_orphan_gc( state.prev_tick_all_online = false; if stats.changed() { info!( - "orphan-gc: marked {} new, revived {} (deferred — at least one library Stale; pending: {})", + "orphan-gc: {} new orphan hash(es) marked, {} revived (deferred — at least one library Stale; pending: {})", stats.newly_marked, stats.revived, state.pending.len() @@ -429,12 +429,13 @@ pub fn run_orphan_gc( if stats.changed() { info!( - "orphan-gc: marked {} new, revived {}; deleted {} face_detections / {} tagged_photo / {} photo_insights", + "orphan-gc: {} new orphan hash(es) marked, {} revived; deleted {} face_detections / {} tagged_photo / {} photo_insights row(s) (pending: {})", stats.newly_marked, stats.revived, stats.deleted_face_detections, stats.deleted_tagged_photo, stats.deleted_photo_insights, + state.pending.len(), ); } else { debug!("orphan-gc: no changes this tick (pending: {})", state.pending.len());