-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 1.0.0-beta1
-
Component/s: None
-
None
mongoc_write_concern_set_w() requires the argument to be >= -3 or it is a NOP. We should raise an exception if $w is an integer < -3.
Additionally, should we raise an exception if the $wtimeout argument is < 0. Currently, libmongoc doesn't check for this and allows a negative timeout to be set, which may be an oversight. Per the documentation, wtimeout should be >= 0.
- is related to
-
PHPC-425 WriteConcern constructor should accept only integer and strings for $w, without casting
- Closed
-
CDRIVER-851 Do not allow negative values for wtimeout
- Closed
- related to
-
PHPC-423 WriteConcern should return null for default "w" option
- Closed