From 94606c612b4e0e85af399c52fb73b491cc12e1ea Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 17 Mar 2026 18:59:34 -0700 Subject: [PATCH] Fix is_expired volume_size comparison to use < matching Go Go checks `volumeSize < super_block.SuperBlockSize` (strict less-than), but Rust used `<=`. This meant Rust would fail to expire a volume that is exactly SUPER_BLOCK_SIZE bytes. --- seaweed-volume/src/storage/volume.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seaweed-volume/src/storage/volume.rs b/seaweed-volume/src/storage/volume.rs index 742590d6b..3513d4b15 100644 --- a/seaweed-volume/src/storage/volume.rs +++ b/seaweed-volume/src/storage/volume.rs @@ -1645,7 +1645,7 @@ impl Volume { if volume_size_limit == 0 { return false; } - if volume_size <= SUPER_BLOCK_SIZE as u64 { + if volume_size < SUPER_BLOCK_SIZE as u64 { return false; } let ttl_minutes = self.super_block.ttl.minutes();