aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-11-20 23:09:32 +0100
committerAlex Auvolat <alex@adnab.me>2020-11-20 23:53:54 +0100
commit173f0dbac98f7962c75663cf7ee37c700596b40d (patch)
tree1574933ea02eab5f4c41709877d8c2c47de5bf64
parentf8a04852a2cda84d4fd12ec19e90bbd8224bf4e9 (diff)
downloadgarage-173f0dbac98f7962c75663cf7ee37c700596b40d.tar.gz
garage-173f0dbac98f7962c75663cf7ee37c700596b40d.zip
oops
-rw-r--r--src/garage/admin_rpc.rs1
-rw-r--r--src/table/crdt.rs2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/garage/admin_rpc.rs b/src/garage/admin_rpc.rs
index c2b2f22c..a23d3e95 100644
--- a/src/garage/admin_rpc.rs
+++ b/src/garage/admin_rpc.rs
@@ -258,6 +258,7 @@ impl AdminRpcHandler {
"Bucket is deleted in update_bucket_key"
)));
}
+ self.garage.bucket_table.insert(&bucket).await?;
Ok(())
}
diff --git a/src/table/crdt.rs b/src/table/crdt.rs
index 7c888e3a..708d47f3 100644
--- a/src/table/crdt.rs
+++ b/src/table/crdt.rs
@@ -97,7 +97,7 @@ pub struct LWWMap<K, V> {
impl<K, V> LWWMap<K, V>
where
K: Serialize + for<'de> Deserialize<'de> + Clone + core::fmt::Debug + PartialEq + Ord,
- V: Serialize + for<'de> Deserialize<'de> + Clone + core::fmt::Debug + PartialEq + Ord,
+ V: Serialize + for<'de> Deserialize<'de> + Clone + core::fmt::Debug + PartialEq + CRDT,
{
pub fn new() -> Self {
Self { vals: vec![] }