mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Fix for issue #635
Fix for the following issue on master: https://github.com/chrislusf/seaweedfs/issues/635
This commit is contained in:
parent
d49e91cd78
commit
e4b1e5c3c8
|
@ -61,7 +61,7 @@ func (v *Volume) Size() int64 {
|
||||||
return stat.Size()
|
return stat.Size()
|
||||||
}
|
}
|
||||||
glog.V(0).Infof("Failed to read file size %s %v", v.dataFile.Name(), e)
|
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
|
// Close cleanly shuts down this volume
|
||||||
|
|
Loading…
Reference in a new issue