mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-30 08:44:27 +01:00
c984fa1071
1176: fix race condition in document addition r=Kerollmops a=MarinPostma As described in #1160, there was a race condition when updating settings and adding documents simultaneously. This was due to the schema being updated and document addition being processed in two different transactions. This PR moves the schema update logic for the primary key in the same transaction as the document addition, while maintaining the input checks for the validity of the primary key in the http route, in order not to break the error reporting for the document addition route. close #1160. Co-authored-by: mpostma <postma.marin@protonmail.com> Co-authored-by: marin <postma.marin@protonmail.com> |
||
---|---|---|
.. | ||
automaton | ||
criterion | ||
filters | ||
serde | ||
store | ||
update | ||
bucket_sort.rs | ||
database.rs | ||
distinct_map.rs | ||
error.rs | ||
facets.rs | ||
levenshtein.rs | ||
lib.rs | ||
number.rs | ||
query_builder.rs | ||
query_tree.rs | ||
query_words_mapper.rs | ||
ranked_map.rs | ||
raw_document.rs | ||
raw_indexer.rs | ||
reordered_attrs.rs | ||
settings.rs |