Implement ring comparison algorithm

This commit is contained in:
Alex Auvolat
2020-04-16 17:04:28 +02:00
parent f01c1e71b5
commit e8d750175d
3 changed files with 142 additions and 13 deletions
+6 -3
View File
@@ -93,7 +93,8 @@ impl Garage {
&db,
"block_ref".to_string(),
data_rep_param.clone(),
).await;
)
.await;
let version_table = Table::new(
VersionTable {
background: background.clone(),
@@ -103,7 +104,8 @@ impl Garage {
&db,
"version".to_string(),
meta_rep_param.clone(),
).await;
)
.await;
let object_table = Table::new(
ObjectTable {
background: background.clone(),
@@ -113,7 +115,8 @@ impl Garage {
&db,
"object".to_string(),
meta_rep_param.clone(),
).await;
)
.await;
let mut garage = Self {
db,