Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
b8c4bac
fix
likewu Jul 5, 2025
f080c98
fix
likewu Jul 5, 2025
82dca58
fix
likewu Jul 5, 2025
c322a2a
fix delete-marker expiration. add api_restore.
likewu Jul 6, 2025
60ef1b7
fix
likewu Jul 6, 2025
29287d8
time retry object upload
likewu Jul 7, 2025
96a3315
lock file
likewu Jul 7, 2025
986ecd5
make fmt
likewu Jul 8, 2025
78b4592
Merge branch 'main' of https://github.com/rustfs/rustfs into feature-…
likewu Jul 8, 2025
2fa631f
fix
likewu Jul 8, 2025
59f6968
restore object
likewu Jul 9, 2025
3122584
fix
likewu Jul 10, 2025
f578890
Merge branch 'main' of https://github.com/rustfs/rustfs into feature-…
likewu Jul 10, 2025
fc8c3b7
fix
likewu Jul 11, 2025
ca92042
Merge branch 'main' of https://github.com/rustfs/rustfs into feature-…
likewu Jul 11, 2025
4c8db60
serde-rs-xml -> quick-xml
likewu Jul 11, 2025
e128a46
fix
likewu Jul 14, 2025
d88f166
Merge branch 'main' of https://github.com/rustfs/rustfs into feature-…
likewu Jul 20, 2025
2603e6a
Merge branch 'main' of https://github.com/rustfs/rustfs into feature-…
likewu Jul 20, 2025
83743dd
checksum
likewu Jul 22, 2025
61ce97a
fix
likewu Jul 25, 2025
af0e5c1
Merge branch 'main' of https://github.com/rustfs/rustfs into feature-…
likewu Jul 26, 2025
fc1c446
Merge branch 'main' of https://github.com/rustfs/rustfs into feature-…
likewu Jul 26, 2025
86e82ff
fix
likewu Jul 28, 2025
969bdc2
fix
likewu Jul 28, 2025
c88a008
fix
likewu Jul 28, 2025
72d0927
fix
likewu Jul 29, 2025
c36a0ae
fix
likewu Jul 29, 2025
22dc267
fix
likewu Jul 29, 2025
18cee82
Merge branch 'main' of https://github.com/rustfs/rustfs into feature-…
likewu Jul 29, 2025
76e1088
Merge branch 'main' of https://github.com/rustfs/rustfs into feature-…
likewu Aug 4, 2025
6964363
ilm env
likewu Aug 6, 2025
0dd1214
Merge branch 'main' of https://github.com/rustfs/rustfs into feature-…
likewu Aug 8, 2025
de1da2e
scanner_item prefix object_name
likewu Aug 17, 2025
e529566
oi
likewu Aug 18, 2025
aefb7f1
fix
likewu Aug 18, 2025
81beada
fix retry
likewu Aug 23, 2025
f10e471
fix
likewu Aug 23, 2025
5654494
fix
likewu Aug 24, 2025
e8898d4
object_path
likewu Aug 26, 2025
118c624
object_name
likewu Aug 26, 2025
650baeb
fi version_purge_status
likewu Aug 26, 2025
dc7be7f
old_dir None
likewu Aug 26, 2025
9848a98
fix
likewu Aug 26, 2025
c3c626a
fix
likewu Aug 26, 2025
0abcb0f
Merge branch 'main' of https://github.com/rustfs/rustfs into feature-…
likewu Aug 26, 2025
c29b555
Merge branch 'main' of https://github.com/rustfs/rustfs into feature-…
likewu Aug 28, 2025
d5c4463
fix test
likewu Aug 30, 2025
b2534fd
fix
likewu Aug 30, 2025
f992bc5
fix test case
likewu Aug 30, 2025
7ae668c
fix
likewu Aug 30, 2025
8344112
Merge branch 'main' of github.com:rustfs/rustfs into feature-up/ilm
houseme Aug 30, 2025
8015c94
Merge branch 'main' of https://github.com/rustfs/rustfs into feature-…
likewu Aug 30, 2025
dfd36d7
Merge branch 'feature-up/ilm' of https://github.com/rustfs/rustfs int…
likewu Aug 30, 2025
7d18309
fix
houseme Aug 30, 2025
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
Prev Previous commit
Next Next commit
fix
  • Loading branch information
likewu committed Jul 28, 2025
commit 969bdc2efc89ab54df6de901b73b2b66a71341b6
2 changes: 1 addition & 1 deletion cli/rustfs-gui/src/utils/helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ impl ServiceManager {
StdCommand::new("taskkill")
.arg("/F")
.arg("/PID")
.arg(&service_pid.to_string())
.arg(service_pid.to_string())
.output()?;
}

Expand Down
8 changes: 4 additions & 4 deletions crates/checksums/src/base64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use base64_simd::STANDARD;
use std::error::Error;

#[derive(Debug)]
pub struct DecodeError(base64_simd::Error);
pub(crate) struct DecodeError(base64_simd::Error);

impl Error for DecodeError {
fn source(&self) -> Option<&(dyn Error + 'static)> {
Expand All @@ -30,14 +30,14 @@ impl std::fmt::Display for DecodeError {
}
}

pub fn decode(input: impl AsRef<str>) -> Result<Vec<u8>, DecodeError> {
pub(crate) fn decode(input: impl AsRef<str>) -> Result<Vec<u8>, DecodeError> {
STANDARD.decode_to_vec(input.as_ref()).map_err(DecodeError)
}

pub fn encode(input: impl AsRef<[u8]>) -> String {
pub(crate) fn encode(input: impl AsRef<[u8]>) -> String {
STANDARD.encode_to_string(input.as_ref())
}

pub fn encoded_length(length: usize) -> usize {
pub(crate) fn encoded_length(length: usize) -> usize {
STANDARD.encoded_length(length)
}
2 changes: 1 addition & 1 deletion crates/checksums/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ mod tests {
acc
});

format!("0x{}", decoded_checksum)
format!("0x{decoded_checksum}")
}

#[test]
Expand Down
9 changes: 2 additions & 7 deletions crates/ecstore/src/client/api_put_object_multipart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,12 @@ use crate::client::{
api_s3_datatypes::{
CompleteMultipartUpload, CompleteMultipartUploadResult, CompletePart, InitiateMultipartUploadResult, ObjectPart,
},
constants::{ABS_MIN_PART_SIZE, ISO8601_DATEFORMAT, MAX_PART_SIZE, MAX_SINGLE_PUT_OBJECT_SIZE},
constants::{ISO8601_DATEFORMAT, MAX_PART_SIZE, MAX_SINGLE_PUT_OBJECT_SIZE},
transition_api::{ReaderImpl, RequestMetadata, TransitionClient, UploadInfo},
};
use crate::{
checksum::ChecksumMode,
disk::DiskAPI,
store_api::{GetObjectReader, StorageAPI},
};
use crate::{checksum::ChecksumMode, disk::DiskAPI, store_api::StorageAPI};
use rustfs_utils::{crypto::base64_encode, path::trim_etag};
use s3s::header::{X_AMZ_EXPIRATION, X_AMZ_VERSION_ID};
use s3s::{Body, dto::StreamingBlob};

impl TransitionClient {
pub async fn put_object_multipart(
Expand Down
32 changes: 18 additions & 14 deletions crates/utils/src/retry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use std::{
pin::Pin,
sync::LazyLock,
task::{Context, Poll},
time::{Duration, Instant},
time::Duration,
};
use tokio::time::interval;

Expand Down Expand Up @@ -114,20 +114,24 @@ pub fn is_http_status_retryable(http_statuscode: &http::StatusCode) -> bool {
}

pub fn is_request_error_retryable(_err: std::io::Error) -> bool {
/*if err == Err::Canceled) || err == Err::DeadlineExceeded) {
return ctx.Err() == nil;
/*if err == Err::Canceled || err == Err::DeadlineExceeded {
return err() == nil;
}
let ue = err.(*url.Error);
if ue.is_ok() {
let e = ue.Unwrap();
switch e.(type) {
case x509.UnknownAuthorityError:
return false;
}
switch e.Error() {
case "http: server gave HTTP response to HTTPS client":
return false;
}
let uerr = err.(*url.Error);
if uerr.is_ok() {
let e = uerr.unwrap();
return match e.type {
x509.UnknownAuthorityError => {
false
}
_ => true,
};
return match e.error() {
"http: server gave HTTP response to HTTPS client" => {
false
}
_ => rue,
};
}
true*/
todo!();
Expand Down
2 changes: 1 addition & 1 deletion crates/utils/src/sys/user_agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ impl UserAgent {
Some(version) => version,
None => "Windows NT Unknown".to_string(),
};
format!("Windows NT {}", version)
format!("Windows NT {version}")
}

#[cfg(not(windows))]
Expand Down
Loading