mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-01 09:50:39 +01:00
volume: deletion can skip volume size checking
fix https://github.com/chrislusf/seaweedfs/issues/2225
This commit is contained in:
1 parent
6ba65c3382
commit
9cc84a910f
1 file changed
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user