From 4d1ce9618a0a7fbbe0954a08590b53611ec1ea81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=90=E5=B0=8F=E9=B8=AD?= Date: Mon, 7 Sep 2026 07:42:17 +0800 Subject: [PATCH] fix(scanner): pass dirty scopes to distributed scope resolution (#7329) --- crates/scanner/src/scanner_io/io_cycle.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/scanner/src/scanner_io/io_cycle.rs b/crates/scanner/src/scanner_io/io_cycle.rs index 8fc7103a0..1cc857f46 100644 --- a/crates/scanner/src/scanner_io/io_cycle.rs +++ b/crates/scanner/src/scanner_io/io_cycle.rs @@ -172,9 +172,13 @@ where return default_result(resolution.requested_scope); }; dirty_buckets.extend(remote_dirty_usage.dirty_buckets); + // Peer snapshots contribute bucket names only; the local prefix scopes + // would narrow a bucket a peer dirtied elsewhere, so the merged scope + // stays at bucket granularity (same rule as the local fallthrough). let scope = scoped_scan_scope_from_dirty_buckets( resolution.requested_scope, dirty_buckets, + None, true, resolution.all_buckets, resolution.baseline_proof,