mirror of
https://github.com/chrislusf/seaweedfs
synced 2024-07-03 07:36:45 +02:00
fix error on go tip
This commit is contained in:
parent
d2a811eef2
commit
eaf000eff1
|
@ -42,7 +42,7 @@ func (s *SuperBlock) Bytes() []byte {
|
||||||
func (v *Volume) maybeWriteSuperBlock() error {
|
func (v *Volume) maybeWriteSuperBlock() error {
|
||||||
stat, e := v.dataFile.Stat()
|
stat, e := v.dataFile.Stat()
|
||||||
if e != nil {
|
if e != nil {
|
||||||
glog.V(0).Infof("failed to stat datafile %s: %v", v.dataFile, e)
|
glog.V(0).Infof("failed to stat datafile %s: %v", v.dataFile.Name(), e)
|
||||||
return e
|
return e
|
||||||
}
|
}
|
||||||
if stat.Size() == 0 {
|
if stat.Size() == 0 {
|
||||||
|
|
Loading…
Reference in a new issue