We use writeConcern values of "w" -2 through -4 to express special internal meanings. By accident, we also allow these values in URIs like:
mongodb://host/?w=-4
and also in BSON documents passed as "opts":
bson_t *opts; opts = BCON_NEW ("writeConcern", "{", "w", BCON_INT32 (-4), "}"); mongoc_collection_insert_one (collection, document, opts);
In 1.10, we'll prohibit "w" values less than -1.
"w=-1" is still allowed as a deprecated alias for "w=0" (CDRIVER-628).
- is related to
-
CDRIVER-628 Deprecate MONGOC_WRITE_CONCERN_W_ERRORS_IGNORED
- Closed
-
CDRIVER-2490 Resync tests to update handling of inconsistent write concern
- Closed