mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-25 21:46:50 +00:00
fix(replication): keep first-replication miss quiet in multipart LWW log
Version-absent is the normal first delivery of a version, not a degraded comparison skip; only real read errors (quorum loss) warrant the warn added in the previous commit.
This commit is contained in:
@@ -2253,6 +2253,9 @@ impl crate::storage_api_contracts::multipart::MultipartOperations for SetDisks {
|
|||||||
let stored = crate::set_disk::ops::object::stored_replication_category_metadata(&existing);
|
let stored = crate::set_disk::ops::object::stored_replication_category_metadata(&existing);
|
||||||
crate::set_disk::ops::object::merge_replication_metadata_lww(&mut fi.metadata, &stored, opts);
|
crate::set_disk::ops::object::merge_replication_metadata_lww(&mut fi.metadata, &stored, opts);
|
||||||
}
|
}
|
||||||
|
// Version absent: first replication of this version, nothing
|
||||||
|
// local to compare — the normal path, not a degraded one.
|
||||||
|
Err(err) if is_err_object_not_found(&err) || is_err_version_not_found(&err) => {}
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
// Degraded path: without the stored state the inbound
|
// Degraded path: without the stored state the inbound
|
||||||
// metadata is applied unchanged — exactly the overwrite
|
// metadata is applied unchanged — exactly the overwrite
|
||||||
|
|||||||
Reference in New Issue
Block a user