MeiliSearch/meilisearch-core/src
bors[bot] c984fa1071
Merge #1176
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>
2021-02-02 09:26:32 +00:00
..
automaton fix indexer tests 2021-01-05 15:21:05 +01:00
criterion update heed 2020-12-09 11:27:38 +01:00
filters make clippy happy 1 2020-06-30 11:01:07 +02:00
serde update heed 2020-12-09 11:27:38 +01:00
store update heed 2020-12-09 11:27:38 +01:00
update Merge #1176 2021-02-02 09:26:32 +00:00
bucket_sort.rs feat(search): update nbHits count with filtered docs for core flow 2020-11-19 19:35:37 +05:30
database.rs restore synonyms tests 2021-01-05 15:21:05 +01:00
distinct_map.rs Rename MeiliDB into MeiliSearch 2019-11-26 11:12:30 +01:00
error.rs Update error.rs 2020-07-20 14:42:47 +02:00
facets.rs update codebase with shcema refactor 2020-12-15 12:04:51 +01:00
levenshtein.rs Rename MeiliDB into MeiliSearch 2019-11-26 11:12:30 +01:00
lib.rs add word limit to search queries 2021-01-08 16:23:23 +01:00
number.rs make clippy happy 1 2020-06-30 11:01:07 +02:00
query_builder.rs fix test set 2021-01-05 21:37:05 +01:00
query_tree.rs add word limit to search queries 2021-01-08 16:23:23 +01:00
query_words_mapper.rs make clippy happy 2 2020-06-30 11:01:07 +02:00
ranked_map.rs fix for review 2020-02-11 15:28:00 +01:00
raw_document.rs Reintroduce a basic highlight display 2020-01-16 14:24:45 +01:00
raw_indexer.rs remove byte offset in index_seq 2021-01-05 15:21:06 +01:00
reordered_attrs.rs Reintroduce searchable attributes and reordering 2019-12-13 14:38:25 +01:00
settings.rs update codebase with shcema refactor 2020-12-15 12:04:51 +01:00