Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

docs(scrub): correct backwards FULL/LOCAL mode comments in Rust (#10141)

Chris Lu0e293c9b0aed
diff --git a/seaweed-volume/src/server/grpc_server.rs b/seaweed-volume/src/server/grpc_server.rs
index f9392310b0..89bf995a17 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