Browse Source

Update command_volume_fsck.go

minor
pull/2498/head
Chris Lu 3 years ago
parent
commit
9ccfc1cfee
  1. 4
      weed/shell/command_volume_fsck.go

4
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)
}
}
}

Loading…
Cancel
Save