aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-07-09 23:31:25 -0700
committerChris Lu <chris.lu@gmail.com>2018-07-09 23:31:25 -0700
commit8a12fd9ec41d93c535d89b0803e964a35728ee5a (patch)
tree46ffb67cb2dd9fd2e7a664e534b9b2cae003e1a5
parent6c4fee85e3a369a43c7f595103ad4617063fc7f7 (diff)
downloadseaweedfs-8a12fd9ec41d93c535d89b0803e964a35728ee5a.tar.xz
seaweedfs-8a12fd9ec41d93c535d89b0803e964a35728ee5a.zip
add error checking when loading dat file
-rw-r--r--weed/storage/volume_loading.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/storage/volume_loading.go b/weed/storage/volume_loading.go
index 457d50410..572220650 100644
--- a/weed/storage/volume_loading.go
+++ b/weed/storage/volume_loading.go
@@ -43,6 +43,8 @@ func (v *Volume) load(alsoLoadIndex bool, createDatIfMissing bool, needleMapKind
if e != nil {
if !os.IsPermission(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)
}
}