diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-10-14 23:12:43 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-10-14 23:12:43 -0700 |
| commit | b1daede91bca63bf2ca3019f622e763d35969e4f (patch) | |
| tree | 2078fd7bc116e12f0eeb2c3015c3568b90163b57 /weed/operation | |
| parent | 91ac2e0dd920c0f629f4076202267afbac74a62c (diff) | |
| download | seaweedfs-b1daede91bca63bf2ca3019f622e763d35969e4f.tar.xz seaweedfs-b1daede91bca63bf2ca3019f622e763d35969e4f.zip | |
move volume vacuum to gRpc
Diffstat (limited to 'weed/operation')
| -rw-r--r-- | weed/operation/delete_content.go | 2 | ||||
| -rw-r--r-- | weed/operation/grpc_client.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/weed/operation/delete_content.go b/weed/operation/delete_content.go index ad842a4cb..72041f126 100644 --- a/weed/operation/delete_content.go +++ b/weed/operation/delete_content.go @@ -97,7 +97,7 @@ func DeleteFiles(master string, fileIds []string) ([]*volume_server_pb.DeleteRes // DeleteFilesAtOneVolumeServer deletes a list of files that is on one volume server via gRpc func DeleteFilesAtOneVolumeServer(volumeServer string, fileIds []string) (ret []*volume_server_pb.DeleteResult, err error) { - err = withVolumeServerClient(volumeServer, func(volumeServerClient volume_server_pb.VolumeServerClient) error { + err = WithVolumeServerClient(volumeServer, func(volumeServerClient volume_server_pb.VolumeServerClient) error { req := &volume_server_pb.BatchDeleteRequest{ FileIds: fileIds, diff --git a/weed/operation/grpc_client.go b/weed/operation/grpc_client.go index 324166f93..5e6c23709 100644 --- a/weed/operation/grpc_client.go +++ b/weed/operation/grpc_client.go @@ -11,7 +11,7 @@ import ( "github.com/chrislusf/seaweedfs/weed/util" ) -func withVolumeServerClient(volumeServer string, fn func(volume_server_pb.VolumeServerClient) error) error { +func WithVolumeServerClient(volumeServer string, fn func(volume_server_pb.VolumeServerClient) error) error { grpcAddress, err := toVolumeServerGrpcAddress(volumeServer) if err != nil { |
