Browse Source

Fix for issue #635

Fix for the following issue on master: https://github.com/chrislusf/seaweedfs/issues/635
pull/637/head
mtolman 7 years ago
committed by GitHub
parent
commit
e4b1e5c3c8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      weed/storage/volume.go

2
weed/storage/volume.go

@ -61,7 +61,7 @@ func (v *Volume) Size() int64 {
return stat.Size()
}
glog.V(0).Infof("Failed to read file size %s %v", v.dataFile.Name(), e)
return -1
return 0 // -1 causes integer overflow and the volume to become unwritable.
}
// Close cleanly shuts down this volume

Loading…
Cancel
Save