MeiliSearch/meilisearch-http
bors[bot] 868658f3d8
Merge #109
109: Make updates atomic r=curquiza a=MarinPostma

Until now, the index_uid->uuid mapping was done before the update was written to disk in the case of automatic index creation. This was an issue when the update failed, and the index would still exists in the uuid resolver.

This is fixed by this pr, by first creating the update with an uuid if the index does not exist, and then register this uuid to the uuid resolver.

This is preliminary work to the implementation of snapshots (#19).

This pr also changes the `resolve` method on the `UuidResolver` to `get` to make it clearer.


The `create_uuid` method may be bound to disappear when the index name resolution is handled by a remote machine.

Co-authored-by: mpostma <postma.marin@protonmail.com>
2021-03-24 12:24:32 +00:00
..
public restructure project 2021-03-10 13:46:49 +01:00
src Merge #109 2021-03-24 12:24:32 +00:00
tests use write sender for updates 2021-03-18 08:32:05 +01:00
build.rs restructure project 2021-03-10 13:46:49 +01:00
Cargo.lock restructure project 2021-03-10 13:46:49 +01:00
Cargo.toml Update Cargo.toml 2021-03-16 19:54:34 +01:00