From 9cc84a910f6a2a00da17b6ae3aa54f4e74dfab15 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 1 Aug 2021 00:32:51 -0700 Subject: [PATCH] volume: deletion can skip volume size checking fix https://github.com/chrislusf/seaweedfs/issues/2225 --- weed/storage/needle/needle_read_write.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/storage/needle/needle_read_write.go b/weed/storage/needle/needle_read_write.go index 84e00374a..3b9eb7237 100644 --- a/weed/storage/needle/needle_read_write.go +++ b/weed/storage/needle/needle_read_write.go @@ -147,7 +147,7 @@ func (n *Needle) Append(w backend.BackendStorageFile, version Version) (offset u err = fmt.Errorf("Cannot Read Current Volume Position: %v", e) return } - if offset >= MaxPossibleVolumeSize { + if offset >= MaxPossibleVolumeSize && n.Size.IsValid() { err = fmt.Errorf("Volume Size %d Exeededs %d", offset, MaxPossibleVolumeSize) return }