mirror of
https://github.com/chrislusf/seaweedfs
synced 2024-07-03 15:46:44 +02:00
add error checking when loading dat file
This commit is contained in:
parent
6c4fee85e3
commit
8a12fd9ec4
|
@ -43,6 +43,8 @@ func (v *Volume) load(alsoLoadIndex bool, createDatIfMissing bool, needleMapKind
|
||||||
if e != nil {
|
if e != nil {
|
||||||
if !os.IsPermission(e) {
|
if !os.IsPermission(e) {
|
||||||
return fmt.Errorf("cannot load Volume Data %s.dat: %v", fileName, e)
|
return fmt.Errorf("cannot load Volume Data %s.dat: %v", fileName, e)
|
||||||
|
} else {
|
||||||
|
return fmt.Errorf("load data file %s.dat: %v", fileName, e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue