aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/volume.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/storage/volume.go')
-rw-r--r--weed/storage/volume.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/storage/volume.go b/weed/storage/volume.go
index 31960451c..066f06604 100644
--- a/weed/storage/volume.go
+++ b/weed/storage/volume.go
@@ -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
}