refactor: make TableShardedReplication a thin wrapper around LayoutManager

This commit is contained in:
Yureka
2025-04-20 20:37:52 +02:00
parent c8e9c45889
commit 899292ee28
3 changed files with 30 additions and 23 deletions
+2 -4
View File
@@ -155,10 +155,8 @@ impl Garage {
let system = System::new(network_key, replication_factor, consistency_mode, &config)?;
let meta_rep_param = TableShardedReplication {
system: system.clone(),
replication_factor: replication_factor.into(),
write_quorum: replication_factor.write_quorum(consistency_mode),
read_quorum: replication_factor.read_quorum(consistency_mode),
layout_manager: system.layout_manager.clone(),
consistency_mode,
};
let control_rep_param = TableFullReplication {