aboutsummaryrefslogtreecommitdiff
path: root/src/table/replication/sharded.rs
diff options
context:
space:
mode:
authorYureka <yuka@yuka.dev>2024-03-04 18:37:00 +0100
committerYureka <yuka@yuka.dev>2024-03-04 18:39:56 +0100
commit6760895926c23112583dfc53a01ecbcfad02a276 (patch)
tree6cfad4bd68493aa2038b60f7f2005ec91bcc0509 /src/table/replication/sharded.rs
parentbbde9bc91225ac41ea6e8def61c5b7044bb186a0 (diff)
downloadgarage-6760895926c23112583dfc53a01ecbcfad02a276.tar.gz
garage-6760895926c23112583dfc53a01ecbcfad02a276.zip
refactor: remove max_write_errors and max_faults
Diffstat (limited to 'src/table/replication/sharded.rs')
-rw-r--r--src/table/replication/sharded.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/table/replication/sharded.rs b/src/table/replication/sharded.rs
index 8ba3700f..e0245949 100644
--- a/src/table/replication/sharded.rs
+++ b/src/table/replication/sharded.rs
@@ -44,9 +44,6 @@ impl TableReplication for TableShardedReplication {
fn write_quorum(&self) -> usize {
self.write_quorum
}
- fn max_write_errors(&self) -> usize {
- self.replication_factor - self.write_quorum
- }
fn partition_of(&self, hash: &Hash) -> Partition {
self.system.cluster_layout().current().partition_of(hash)