From d6335c5e94b8175fda4d079857b302dafe8c8107 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Thu, 1 Oct 2026 06:24:02 -0700 Subject: [PATCH] volume: fix ReadOnly match arm missed by the tuple-variant change #11544 made VolumeError::ReadOnly carry the volume id; the batch-write fallback in write_volume_needles still matched and built it as a unit variant, breaking the build (E0532/E0308). Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- seaweed-volume/src/storage/store.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seaweed-volume/src/storage/store.rs b/seaweed-volume/src/storage/store.rs index 5c0a532464..93861c50c5 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(_) => Err(VolumeError::ReadOnly(vid)), _ => Err(VolumeError::NotFound), }) .collect(),