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
+1 -1
View File
@@ -93,7 +93,7 @@ async fn serve_file(garage: Arc<Garage>, req: Request<Body>) -> Result<Response<
// Check bucket isn't deleted and has website access enabled
let _: Bucket = garage
.bucket_table
.get(&bucket_id, &EmptyKey)
.get(&EmptyKey, &bucket_id)
.await?
.filter(|b| {
b.state