MeiliSearch/meilisearch-http/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
..
helpers fix authentication cors bug 2021-01-12 18:08:16 +01:00
models introduce new key management 2020-02-14 12:54:07 +01:00
routes fix race condition in document addition 2021-01-13 13:17:52 +01:00
analytics.rs fix incompatible deps 2021-01-04 18:33:22 +01:00
data.rs make dumps reentrant 2020-12-15 13:05:01 +01:00
dump.rs fix race condition in document addition 2021-01-13 13:17:52 +01:00
error.rs remove maintenance error from http 2020-11-16 17:30:37 +01:00
lib.rs disable frontend in production 2020-11-23 13:13:10 +01:00
main.rs fix cors error 2021-01-12 16:46:53 +01:00
option.rs Increasing payload default size 2020-12-29 16:55:35 -05:00
snapshot.rs snapshot at start 2020-10-22 15:46:20 +02:00