diff --git a/seaweed-volume/src/storage/volume.rs b/seaweed-volume/src/storage/volume.rs index 57f36d8f3..94d42c853 100644 --- a/seaweed-volume/src/storage/volume.rs +++ b/seaweed-volume/src/storage/volume.rs @@ -951,9 +951,8 @@ impl Volume { // Match Go: if volumeInfo.Replication is set, override super block's ReplicaPlacement if !self.volume_info.replication.is_empty() { - if let Ok(rp) = ReplicaPlacement::from_string(&self.volume_info.replication) { - self.super_block.replica_placement = rp; - } + let rp = ReplicaPlacement::from_string(&self.volume_info.replication)?; + self.super_block.replica_placement = rp; } Ok(())