fix unexisting update store + race conditions

This commit is contained in:
mpostma 2021-03-11 22:11:58 +01:00
parent 3f68460d6c
commit 40b3451a4e
No known key found for this signature in database
GPG key ID: CBC8A7C1D7A28C3A
3 changed files with 48 additions and 14 deletions

View file

@ -144,6 +144,7 @@ impl IndexController {
let name = name.unwrap();
let uuid = self.uuid_resolver.create(name.clone()).await?;
let meta = self.index_handle.create_index(uuid, primary_key).await?;
let _ = self.update_handle.create(uuid).await?;
let meta = IndexMetadata { name, meta };
Ok(meta)