aboutsummaryrefslogtreecommitdiff
path: root/src/garage
diff options
context:
space:
mode:
authorAlex <alex@adnab.me>2024-03-07 16:32:52 +0000
committerAlex <alex@adnab.me>2024-03-07 16:32:52 +0000
commit20c0b4ffb2ae8e250068f8bf8001b5811a6bb6f2 (patch)
treeee7ab2f5eaf862927ef87d43e661557906742cc5 /src/garage
parent2fd13c7d135949a83ed52ed81672ac7e1956f134 (diff)
parentc1769bbe69f723fb3980cf4fdac7615cfb782720 (diff)
downloadgarage-20c0b4ffb2ae8e250068f8bf8001b5811a6bb6f2.tar.gz
garage-20c0b4ffb2ae8e250068f8bf8001b5811a6bb6f2.zip
Merge pull request 'ReplicationMode -> ConsistencyMode+ReplicationFactor' (#750) from yuka/garage:split-consistency-mode into next-0.10
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/750
Diffstat (limited to 'src/garage')
-rw-r--r--src/garage/secrets.rs6
-rw-r--r--src/garage/tests/common/garage.rs2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/garage/secrets.rs b/src/garage/secrets.rs
index c3d704aa..8d2ff475 100644
--- a/src/garage/secrets.rs
+++ b/src/garage/secrets.rs
@@ -163,7 +163,7 @@ mod tests {
r#"
metadata_dir = "/tmp/garage/meta"
data_dir = "/tmp/garage/data"
- replication_mode = "3"
+ replication_factor = 3
rpc_bind_addr = "[::]:3901"
rpc_secret_file = "{}"
@@ -185,7 +185,7 @@ mod tests {
r#"
metadata_dir = "/tmp/garage/meta"
data_dir = "/tmp/garage/data"
- replication_mode = "3"
+ replication_factor = 3
rpc_bind_addr = "[::]:3901"
rpc_secret_file = "{}"
allow_world_readable_secrets = true
@@ -296,7 +296,7 @@ mod tests {
r#"
metadata_dir = "/tmp/garage/meta"
data_dir = "/tmp/garage/data"
- replication_mode = "3"
+ replication_factor = 3
rpc_bind_addr = "[::]:3901"
rpc_secret= "dummy"
rpc_secret_file = "dummy"
diff --git a/src/garage/tests/common/garage.rs b/src/garage/tests/common/garage.rs
index ebc82f37..f1c1efc8 100644
--- a/src/garage/tests/common/garage.rs
+++ b/src/garage/tests/common/garage.rs
@@ -54,7 +54,7 @@ metadata_dir = "{path}/meta"
data_dir = "{path}/data"
db_engine = "lmdb"
-replication_mode = "1"
+replication_factor = 1
rpc_bind_addr = "127.0.0.1:{rpc_port}"
rpc_public_addr = "127.0.0.1:{rpc_port}"