diff --git a/reference/mongodb/mongodb/driver/readconcern.xml b/reference/mongodb/mongodb/driver/readconcern.xml index b4ea27d07f..d6ac377842 100644 --- a/reference/mongodb/mongodb/driver/readconcern.xml +++ b/reference/mongodb/mongodb/driver/readconcern.xml @@ -35,6 +35,12 @@ Constants + + const + string + MongoDB\Driver\ReadConcern::LINEARIZABLE + linearizable + const string @@ -60,6 +66,21 @@ &reftitle.constants; + + MongoDB\Driver\ReadConcern::LINEARIZABLE + + + A linearizable read avoids returning reads from a + stale primary (one that has already been superseded + by a new primary but doesn't know it yet). It is important to note + that this read concern level does not by itself produce linearizable + reads; they must be issued in conjunction with + MongoDB\Driver\WriteConcern::MAJORITY writes to the + same document(s) in order to be linearizable. + + + + MongoDB\Driver\ReadConcern::LOCAL @@ -89,6 +110,30 @@ +
+ &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + 1.2.0 + + Added the MongoDB\Driver\ReadConcern::LINEARIZABLE + constant. + + + + + + +