New buckets for 0.6.0: make bucket id a SK and not a HK, CLI updates

This commit is contained in:
Alex Auvolat
2022-01-03 19:06:04 +01:00
parent 1bcd6fabbd
commit df35feba18
9 changed files with 86 additions and 47 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ pub async fn handle_delete_website(
) -> Result<Response<Body>, Error> {
let mut bucket = garage
.bucket_table
.get(&bucket_id, &EmptyKey)
.get(&EmptyKey, &bucket_id)
.await?
.ok_or(Error::NotFound)?;
@@ -48,7 +48,7 @@ pub async fn handle_put_website(
let mut bucket = garage
.bucket_table
.get(&bucket_id, &EmptyKey)
.get(&EmptyKey, &bucket_id)
.await?
.ok_or(Error::NotFound)?;