Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor!: remove some admin APIs #3821

Merged
merged 1 commit into from
Apr 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 0 additions & 44 deletions src/meta-srv/src/service/admin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ mod health;
mod heartbeat;
mod leader;
mod maintenance;
mod meta;
mod node_lease;
mod region_migration;
mod route;
mod util;

use std::collections::HashMap;
Expand Down Expand Up @@ -50,54 +47,13 @@ pub fn make_admin_service(metasrv: Metasrv) -> Admin {
.route("/heartbeat", handler.clone())
.route("/heartbeat/help", handler);

let router = router.route(
"/catalogs",
meta::CatalogsHandler {
table_metadata_manager: metasrv.table_metadata_manager().clone(),
},
);

let handler = meta::SchemasHandler {
table_metadata_manager: metasrv.table_metadata_manager().clone(),
};
let router = router
.route("/schemas", handler.clone())
.route("/schemas/help", handler);

let handler = meta::TablesHandler {
table_metadata_manager: metasrv.table_metadata_manager().clone(),
};
let router = router
.route("/tables", handler.clone())
.route("/tables/help", handler);

let handler = meta::TableHandler {
table_metadata_manager: metasrv.table_metadata_manager().clone(),
};
let router = router
.route("/table", handler.clone())
.route("/table/help", handler);

let router = router.route(
"/leader",
leader::LeaderHandler {
election: metasrv.election().cloned(),
},
);

let handler = route::RouteHandler {
table_metadata_manager: metasrv.table_metadata_manager().clone(),
};
let router = router
.route("/route", handler.clone())
.route("/route/help", handler);

let handler = region_migration::SubmitRegionMigrationTaskHandler {
region_migration_manager: metasrv.region_migration_manager().clone(),
meta_peer_client: metasrv.meta_peer_client().clone(),
};
let router = router.route("/region-migration", handler);

let router = router.route(
"/maintenance",
maintenance::MaintenanceHandler {
Expand Down
239 changes: 0 additions & 239 deletions src/meta-srv/src/service/admin/meta.rs

This file was deleted.

Loading
Loading