From 0e293c9b0aed054db5eadf60fab4ab5d1219207e Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 29 Jun 2026 23:59:11 -0700 Subject: [PATCH] docs(scrub): correct backwards FULL/LOCAL mode comments in Rust (#10141) docs(scrub): correct backwards FULL(2)/LOCAL(3) mode comments The proto enum is FULL=2, LOCAL=3; two comments had them swapped. Claude-Session: https://claude.ai/code/session_015EE9Sc9EvNp8BCVva4RKdo --- seaweed-volume/src/server/grpc_server.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seaweed-volume/src/server/grpc_server.rs b/seaweed-volume/src/server/grpc_server.rs index f9392310b..89bf995a1 100644 --- a/seaweed-volume/src/server/grpc_server.rs +++ b/seaweed-volume/src/server/grpc_server.rs @@ -3826,7 +3826,7 @@ impl VolumeServer for VolumeGrpcService { .ok_or_else(|| Status::not_found(format!("volume id {} not found", vid.0)))?; total_volumes += 1; - // INDEX mode (1) calls scrub_index; LOCAL (2) and FULL (3) call scrub + // INDEX mode (1) calls scrub_index; FULL (2) and LOCAL (3) call scrub let scrub_result = if mode == 1 { v.scrub_index() } else { @@ -3942,7 +3942,7 @@ impl VolumeServer for VolumeGrpcService { } } 2 | 3 => { - // LOCAL (2) / FULL (3): verify EC shard data + // FULL (2) / LOCAL (3): verify EC shard data let files = ecv.walk_ecx_stats().map(|(f, _, _)| f).unwrap_or(0); // After cross-disk reconciliation, an EcVolume can