mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 21:07:56 +08:00
migrate assign volume to grpc API on volume server
This commit is contained in:
@@ -23,8 +23,7 @@ func (ms *MasterServer) collectionDeleteHandler(w http.ResponseWriter, r *http.R
|
||||
return
|
||||
}
|
||||
for _, server := range collection.ListVolumeServers() {
|
||||
serverAddress := fmt.Sprintf("%s:%d", server.Ip, server.Port)
|
||||
err := operation.WithVolumeServerClient(serverAddress, func(client volume_server_pb.VolumeServerClient) error {
|
||||
err := operation.WithVolumeServerClient(server.Url(), func(client volume_server_pb.VolumeServerClient) error {
|
||||
_, deleteErr := client.DeleteCollection(context.Background(), &volume_server_pb.DeleteCollectionRequest{
|
||||
Collection: collection.Name,
|
||||
})
|
||||
|
Reference in New Issue
Block a user