mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-30 17:00:48 +01:00
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>
This commit is contained in:
1 parent
9d3907e36c
commit
d6335c5e94
1 file changed
+1
-1
@@ -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(),
|
||||
|
||||
Reference in new issue
Block a user