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.

volume-rust: match the tuple variant VolumeError::ReadOnly in write_volume_needles

Chris Lu3fd5e4c3296a
diff --git a/seaweed-volume/src/storage/store.rs b/seaweed-volume/src/storage/store.rs
index 5c0a532464..56f58aaae3 100644
--- a/seaweed-volume/src/storage/store.rs
+++ b/seaweed-volume/src/storage/store.rs
@@ -761,7 +761,7 @@ impl Store {
Err(e) => writes
.iter()
.map(|_| match e {
- VolumeError::ReadOnly => Err(VolumeError::ReadOnly),
+ VolumeError::ReadOnly(vid) => Err(VolumeError::ReadOnly(vid)),
_ => Err(VolumeError::NotFound),
})
.collect(),