mongodb/Database/MongoDB
Pierre Mizrahi 995087e9a0 repair single document upserts when using OP_MSG
780df80cfc introduces support for the
OP_MSG protocol. Unfortunately, the upsert and multi options of the
update command still use flagBits to communicate the options, whereas
they must be provided directly into the command document,
alongside the "q" and "v" fields.

This commit:
 - introduces a test for a single-document upsert that, if isolated,
   succeeds against the reference MongoDB 3.6 container, but fails
   against an official 6.0 image.
 - provides a patch that sets the appropriate options.

The test is not perfect as the upsert operation is inherently racy and
this difficult to test. A comfortable threadDelay has been inserted as
a workaround to accomodate for medium workloads.
2023-02-13 14:05:56 +01:00
..
Internal repair single document upserts when using OP_MSG 2023-02-13 14:05:56 +01:00
Transport Cleaning, updating codebase to avoid warnings/infos 2022-06-18 13:33:55 +02:00
Admin.hs Cleaning, updating codebase to avoid warnings/infos 2022-06-18 13:33:55 +02:00
Connection.hs Fixed a typo in openReplicatSetSRV' documentation strings. 2022-09-02 10:53:06 +02:00
GridFS.hs Cleaning, updating codebase to avoid warnings/infos 2022-06-18 13:33:55 +02:00
Query.hs Get rid of MonadFail constraints in Database.MongoDB.Query 2023-01-12 14:25:48 +09:00
Transport.hs Undo some inessential changes 2020-04-01 16:53:37 +02:00