Browse Source

rename

pull/5847/head
chrislu 5 months ago
parent
commit
8378a5b70b
  1. 2
      weed/shell/command_volume_check_disk.go
  2. 2
      weed/shell/command_volume_fsck.go

2
weed/shell/command_volume_check_disk.go

@ -279,7 +279,7 @@ func doVolumeCheckDisk(minuend, subtrahend *needle_map.MemDb, source, target *Vo
fmt.Fprintf(writer, "delete %s %s => %s\n", needleValue.Key.FileId(source.info.Id), source.location.dataNode.Id, target.location.dataNode.Id) fmt.Fprintf(writer, "delete %s %s => %s\n", needleValue.Key.FileId(source.info.Id), source.location.dataNode.Id, target.location.dataNode.Id)
} }
} }
deleteResults, deleteErr := operation.DeleteFilesAtOneVolumeServer(
deleteResults, deleteErr := operation.DeleteFileIdsAtOneVolumeServer(
pb.NewServerAddressFromDataNode(target.location.dataNode), pb.NewServerAddressFromDataNode(target.location.dataNode),
grpcDialOption, fidList, false) grpcDialOption, fidList, false)
if deleteErr != nil { if deleteErr != nil {

2
weed/shell/command_volume_fsck.go

@ -694,7 +694,7 @@ func (c *commandVolumeFsck) purgeFileIdsForOneVolume(volumeId uint32, fileIds []
go func(server pb.ServerAddress, fidList []string) { go func(server pb.ServerAddress, fidList []string) {
defer wg.Done() defer wg.Done()
if deleteResults, deleteErr := operation.DeleteFilesAtOneVolumeServer(server, c.env.option.GrpcDialOption, fidList, false); deleteErr != nil {
if deleteResults, deleteErr := operation.DeleteFileIdsAtOneVolumeServer(server, c.env.option.GrpcDialOption, fidList, false); deleteErr != nil {
err = deleteErr err = deleteErr
} else if deleteResults != nil { } else if deleteResults != nil {
resultChan <- deleteResults resultChan <- deleteResults

Loading…
Cancel
Save