mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-10 15:16:56 +00:00
Fix Admin Heal API and Add Pagination Support for Large Buckets (#933)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: loverustfs <hello@rustfs.com> Co-authored-by: houseme <housemecn@gmail.com>
This commit is contained in:
@@ -137,6 +137,11 @@ pub fn make_admin_route(console_enabled: bool) -> std::io::Result<impl S3Route>
|
||||
|
||||
// Some APIs are only available in EC mode
|
||||
// if is_dist_erasure().await || is_erasure().await {
|
||||
r.insert(
|
||||
Method::POST,
|
||||
format!("{}{}", ADMIN_PREFIX, "/v3/heal/{bucket}").as_str(),
|
||||
AdminOperation(&handlers::HealHandler {}),
|
||||
)?;
|
||||
r.insert(
|
||||
Method::POST,
|
||||
format!("{}{}", ADMIN_PREFIX, "/v3/heal/{bucket}/{prefix}").as_str(),
|
||||
|
||||
@@ -451,7 +451,7 @@ impl Node for NodeService {
|
||||
}));
|
||||
}
|
||||
};
|
||||
match disk.verify_file(&request.volume, &request.path, &file_info).await {
|
||||
match disk.check_parts(&request.volume, &request.path, &file_info).await {
|
||||
Ok(check_parts_resp) => {
|
||||
let check_parts_resp = match serde_json::to_string(&check_parts_resp) {
|
||||
Ok(check_parts_resp) => check_parts_resp,
|
||||
|
||||
Reference in New Issue
Block a user