Post review fixes

This commit is contained in:
Arthur Carcano
2026-04-28 17:56:03 +02:00
committed by Alex
parent 6a097e7de3
commit 322da7242b
6 changed files with 6 additions and 14 deletions
+2 -2
View File
@@ -8,8 +8,8 @@ edition = "2018"
cargo-fuzz = true
[dependencies]
arbitrary = { version = "1.4.2", features = ["derive"] }
libfuzzer-sys = "0.4"
arbitrary = { workspace = true, features = ["derive"]}
libfuzzer-sys = { workspace = true }
[dependencies.garage_table]
path = "../src/table"
+1 -4
View File
@@ -6,13 +6,10 @@ use libfuzzer_sys::fuzz_target;
/// Build a MultipartUpload from an arbitrary deleted flag and parts list, using a fixed
/// upload_id/bucket_id/key so that CRDT state can be compared across merge results.
/// Duplicate part keys are dropped before construction.
/// `MpuPart.version` is fixed to a constant since it is identity data, not CRDT state:
/// two replicas of the same part (same MpuPartKey) always share the same version UUID.
/// If deleted, parts are cleared to ensure a valid initial CRDT state.
fn make_mpu(deleted: bool, mut parts: Vec<(MpuPartKey, MpuPart)>) -> MultipartUpload {
parts.sort_by_key(|(k, _)| *k);
parts.dedup_by_key(|(k, _)| *k);
fn make_mpu(deleted: bool, parts: Vec<(MpuPartKey, MpuPart)>) -> MultipartUpload {
let mut mpu = MultipartUpload::new(
[0u8; 32].into(),
0,