mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-27 00:38:16 +00:00
fix: avoid moved fields in list_path logging
This commit is contained in:
@@ -2956,11 +2956,13 @@ impl SetDisks {
|
||||
fallback_disks = disks.split_off(ask_disks as usize);
|
||||
}
|
||||
|
||||
let resolver = list_metadata_resolution_params(opts.bucket.clone(), listing_quorum, opts.versioned);
|
||||
let bucket = opts.bucket.clone();
|
||||
let base_dir = opts.base_dir.clone();
|
||||
let resolver = list_metadata_resolution_params(bucket.clone(), listing_quorum, opts.versioned);
|
||||
|
||||
debug!(
|
||||
bucket = %opts.bucket,
|
||||
prefix = %opts.base_dir,
|
||||
bucket = %bucket,
|
||||
prefix = %base_dir,
|
||||
set_drive_count = self.set_drive_count,
|
||||
asked_disks = ask_disks,
|
||||
listing_quorum = listing_quorum,
|
||||
@@ -3036,8 +3038,8 @@ impl SetDisks {
|
||||
|
||||
if let Err(ref err) = result {
|
||||
debug!(
|
||||
bucket = %opts.bucket,
|
||||
path = %opts.base_dir,
|
||||
bucket = %bucket,
|
||||
path = %base_dir,
|
||||
disk_count = disks.len(),
|
||||
fallback_disks = fallback_disks.len(),
|
||||
asked_disks = ask_disks,
|
||||
@@ -3048,8 +3050,8 @@ impl SetDisks {
|
||||
);
|
||||
} else {
|
||||
debug!(
|
||||
bucket = %opts.bucket,
|
||||
path = %opts.base_dir,
|
||||
bucket = %bucket,
|
||||
path = %base_dir,
|
||||
disk_count = disks.len(),
|
||||
fallback_disks = fallback_disks.len(),
|
||||
asked_disks = ask_disks,
|
||||
|
||||
@@ -35,13 +35,21 @@ run_unit_checks() {
|
||||
mkdir -p "$OUT_DIR"
|
||||
|
||||
local test_log="$OUT_DIR/issue-785-ecstore-tests.log"
|
||||
(cd "$PROJECT_ROOT" && cargo test -p rustfs-ecstore \
|
||||
list_path_gather_results_returns_after_limit_without_waiting_for_input_close \
|
||||
list_path_gather_results_keeps_marker_entry_for_version_marker_listing \
|
||||
list_path_gather_results_skips_marker_entry_by_default \
|
||||
normalize_list_quorum_falls_back_to_strict \
|
||||
list_objects_quorum_from_env_defaults_to_optimal \
|
||||
-- --nocapture | tee "$test_log")
|
||||
: > "$test_log"
|
||||
|
||||
local tests=(
|
||||
list_path_gather_results_returns_after_limit_without_waiting_for_input_close
|
||||
list_path_gather_results_keeps_marker_entry_for_version_marker_listing
|
||||
list_path_gather_results_skips_marker_entry_by_default
|
||||
normalize_list_quorum_falls_back_to_strict
|
||||
list_objects_quorum_from_env_defaults_to_optimal
|
||||
)
|
||||
|
||||
local test
|
||||
for test in "${tests[@]}"; do
|
||||
echo "[TEST] $test" | tee -a "$test_log"
|
||||
(cd "$PROJECT_ROOT" && cargo test -p rustfs-ecstore "$test" -- --nocapture | tee -a "$test_log")
|
||||
done
|
||||
|
||||
log_info "Unit test log: $test_log"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user