mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
go fmt
This commit is contained in:
parent
306062b4e7
commit
de86945aeb
|
@ -405,7 +405,7 @@ func (worker *FileCopyWorker) uploadFileInChunks(task FileCopyTask, f *os.File,
|
||||||
Replication: *worker.options.replication,
|
Replication: *worker.options.replication,
|
||||||
Collection: *worker.options.collection,
|
Collection: *worker.options.collection,
|
||||||
TtlSec: worker.options.ttlSec,
|
TtlSec: worker.options.ttlSec,
|
||||||
Path: task.destinationUrlPath+fileName,
|
Path: task.destinationUrlPath + fileName,
|
||||||
}
|
}
|
||||||
|
|
||||||
assignResult, assignError = client.AssignVolume(context.Background(), request)
|
assignResult, assignError = client.AssignVolume(context.Background(), request)
|
||||||
|
|
|
@ -76,7 +76,7 @@ func (vs *VolumeServer) VolumeCopy(ctx context.Context, req *volume_server_pb.Vo
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
os.Remove(volumeFileName+".note")
|
os.Remove(volumeFileName + ".note")
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
|
|
|
@ -61,7 +61,7 @@ func (v *Volume) Destroy() (err error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func removeVolumeFiles(filename string) {
|
func removeVolumeFiles(filename string) {
|
||||||
os.Remove(filename+ ".dat")
|
os.Remove(filename + ".dat")
|
||||||
os.Remove(filename + ".idx")
|
os.Remove(filename + ".idx")
|
||||||
os.Remove(filename + ".vif")
|
os.Remove(filename + ".vif")
|
||||||
os.Remove(filename + ".sdx")
|
os.Remove(filename + ".sdx")
|
||||||
|
|
Loading…
Reference in a new issue