mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-23 03:33:34 +08:00
fix from comment delete volume is empty (#4573)
* fix from coments https://github.com/seaweedfs/seaweedfs/pull/4561 * fix tests --------- Co-authored-by: Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.co>
This commit is contained in:

committed by
GitHub

parent
a25bca0692
commit
4527ead295
@@ -333,5 +333,6 @@ func (v *Volume) IsReadOnly() bool {
|
||||
return v.noWriteOrDelete || v.noWriteCanDelete || v.location.isDiskSpaceLow
|
||||
}
|
||||
func (v *Volume) IsEmpty() bool {
|
||||
return v.ContentSize() == 0
|
||||
size, _, _ := v.DataBackend.GetStat()
|
||||
return size <= 8 && v.ContentSize() == 0
|
||||
}
|
||||
|
Reference in New Issue
Block a user