From e65b547e7943b34890b55c3429b244c989997a79 Mon Sep 17 00:00:00 2001 From: Jeremy Mikola Date: Fri, 21 Oct 2016 17:26:08 +0000 Subject: [PATCH] Document MongoDB\Driver\ReadConcern::LINEARIZABLE constant https://jira.mongodb.org/browse/PHPC-777 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340579 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../mongodb/mongodb/driver/readconcern.xml | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) 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. + + + + + + +