aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-04-27 12:41:31 -0700
committerChris Lu <chris.lu@gmail.com>2020-04-27 12:41:31 -0700
commit6190fd665d83a9a231deebc3dd57fb7479a0794d (patch)
tree5ea3e78123c00f9cc4ca36ced417c66d2893b961
parent725e47dcc36801b2dcd904d29f979a05eb1be50c (diff)
downloadseaweedfs-6190fd665d83a9a231deebc3dd57fb7479a0794d.tar.xz
seaweedfs-6190fd665d83a9a231deebc3dd57fb7479a0794d.zip
printout error
-rw-r--r--weed/storage/volume_vacuum.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/storage/volume_vacuum.go b/weed/storage/volume_vacuum.go
index 7518240d2..ed8172909 100644
--- a/weed/storage/volume_vacuum.go
+++ b/weed/storage/volume_vacuum.go
@@ -80,10 +80,10 @@ func (v *Volume) Compact2(preallocate int64, compactionBytePerSecond int64) erro
v.lastCompactRevision = v.SuperBlock.CompactionRevision
glog.V(3).Infof("creating copies for volume %d ...", v.Id)
if err := v.DataBackend.Sync(); err != nil {
- glog.V(0).Infof("compact2 fail to sync volume dat %d", v.Id)
+ glog.V(0).Infof("compact2 fail to sync volume dat %d: %v", v.Id, err)
}
if err := v.nm.Sync(); err != nil {
- glog.V(0).Infof("compact2 fail to sync volume idx %d", v.Id)
+ glog.V(0).Infof("compact2 fail to sync volume idx %d: %v", v.Id, err)
}
return copyDataBasedOnIndexFile(filePath+".dat", filePath+".idx", filePath+".cpd", filePath+".cpx", v.SuperBlock, v.Version(), preallocate, compactionBytePerSecond)
}