mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Update command_volume_fsck.go
minor
This commit is contained in:
parent
71a94267c9
commit
9ccfc1cfee
|
@ -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…
Reference in a new issue