AssumeRoleHandle done

This commit is contained in:
weisd
2024-12-10 16:59:27 +08:00
parent fbcd8407ce
commit 0e9d552712
23 changed files with 341 additions and 59 deletions
+2
View File
@@ -1,5 +1,7 @@
use std::io::{self, ErrorKind};
use tracing::error;
use crate::{
error::{Error, Result},
quorum::CheckErrorFn,
+1
View File
@@ -1,5 +1,6 @@
use std::io;
use tracing::warn;
use tracing_error::{SpanTrace, SpanTraceStatus};
use crate::disk::error::{clone_disk_err, DiskError};
+2
View File
@@ -178,6 +178,7 @@ impl SetDisks {
}
#[tracing::instrument(level = "debug", skip(disks, file_infos))]
#[allow(clippy::type_complexity)]
async fn rename_data(
disks: &[Option<DiskStore>],
src_bucket: &str,
@@ -1630,6 +1631,7 @@ impl SetDisks {
Ok((fi, parts_metadata, online_disks))
}
#[allow(clippy::too_many_arguments)]
async fn get_object_with_fileinfo(
// &self,
bucket: &str,
+1 -1
View File
@@ -58,10 +58,10 @@ use std::{
time::Duration,
};
use time::OffsetDateTime;
use tokio::select;
use tokio::sync::mpsc::Sender;
use tokio::sync::{broadcast, mpsc, RwLock};
use tokio::time::{interval, sleep};
use tokio::{fs, select};
use tracing::{debug, info};
use uuid::Uuid;
-1
View File
@@ -9,7 +9,6 @@ use crate::{
use futures::StreamExt;
use http::HeaderMap;
use madmin::heal_commands::HealResultItem;
use madmin::info_commands::DiskMetrics;
use rmp_serde::Serializer;
use s3s::{dto::StreamingBlob, Body};
use serde::{Deserialize, Serialize};
+2 -2
View File
@@ -222,9 +222,9 @@ pub fn split(path: &str) -> (&str, &str) {
(path, "")
}
pub fn dir(path: &str) -> &str {
pub fn dir(path: &str) -> String {
let (a, _) = split(path);
a
clean(a)
}
#[cfg(test)]
mod tests {