aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_volume_fsck.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-11-28 22:39:24 -0800
committerChris Lu <chris.lu@gmail.com>2021-11-28 22:39:24 -0800
commit9ccfc1cfee63dda1261a73a82f6d077e206daa79 (patch)
tree18b943ec5ac3ba9890ae67fa2e30d9f480d500e3 /weed/shell/command_volume_fsck.go
parent71a94267c9d8f746286ecd7199e17fca58075f4a (diff)
downloadseaweedfs-9ccfc1cfee63dda1261a73a82f6d077e206daa79.tar.xz
seaweedfs-9ccfc1cfee63dda1261a73a82f6d077e206daa79.zip
Update command_volume_fsck.go
minor
Diffstat (limited to 'weed/shell/command_volume_fsck.go')
-rw-r--r--weed/shell/command_volume_fsck.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/shell/command_volume_fsck.go b/weed/shell/command_volume_fsck.go
index 542d594dc..bd5241173 100644
--- a/weed/shell/command_volume_fsck.go
+++ b/weed/shell/command_volume_fsck.go
@@ -216,11 +216,11 @@ func (c *commandVolumeFsck) findExtraChunksInVolumeServers(volumeIdToVInfo map[u
}
if inUseCount == 0 {
if err := deleteVolume(c.env.option.GrpcDialOption, needle.VolumeId(volumeId), vinfo.server); err != nil {
- return fmt.Errorf("delete volume %d: %v\n", volumeId, err)
+ return fmt.Errorf("delete volume %d: %v", volumeId, err)
}
} else {
if err := c.purgeFileIdsForOneVolume(volumeId, orphanFileIds, writer); err != nil {
- return fmt.Errorf("purge for volume %d: %v\n", volumeId, err)
+ return fmt.Errorf("purge for volume %d: %v", volumeId, err)
}
}
}