-
Type: Task
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 1.0.0-beta1
-
Component/s: None
-
None
mongoc_write_concern_set_w() fails as a NOP if the w value is < -3. To recap, these are the defined values:
#define MONGOC_WRITE_CONCERN_W_UNACKNOWLEDGED 0
#define MONGOC_WRITE_CONCERN_W_ERRORS_IGNORED -1 /* deprecated */
#define MONGOC_WRITE_CONCERN_W_DEFAULT -2
#define MONGOC_WRITE_CONCERN_W_MAJORITY -3
#define MONGOC_WRITE_CONCERN_W_TAG -4
Currently, our debug handler omits w from its output if it is -2 (i.e. default). I propose we instead return NULL, as we do for fsync and journal.
- is related to
-
PHPC-425 WriteConcern constructor should accept only integer and strings for $w, without casting
- Closed
-
PHPC-418 Implement getters for ReadPreference and WriteConcern properties
- Closed
-
PHPC-426 WriteConcern constructor should throw for invalid $w and $wtimeout values
- Closed
- related to
-
PHPC-177 WriteConcern debug output ignores all fields for w default
- Closed