summaryrefslogtreecommitdiff
path: root/src/mongo/db/read_concern.h
diff options
context:
space:
mode:
authorhari devaraj <hari.devaraj@10gen.com>2016-06-17 15:25:54 -0400
committerhari devaraj <hari.devaraj@10gen.com>2016-08-10 18:39:27 -0400
commita0b7e4fc8cf224505267b2fe589975ba36f49078 (patch)
tree875a3c4d912da243f05b722e863875a439162ca8 /src/mongo/db/read_concern.h
parentd9bb24e5f5af34862182424b890762cb2c3e9bc8 (diff)
downloadmongo-a0b7e4fc8cf224505267b2fe589975ba36f49078.tar.gz
SERVER-24497 Linearizable read concern implemented
Diffstat (limited to 'src/mongo/db/read_concern.h')
-rw-r--r--src/mongo/db/read_concern.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mongo/db/read_concern.h b/src/mongo/db/read_concern.h
index 35dd7f68b43..695be4d1b8c 100644
--- a/src/mongo/db/read_concern.h
+++ b/src/mongo/db/read_concern.h
@@ -35,11 +35,11 @@ class OperationContext;
class Status;
template <typename T>
class StatusWith;
-
namespace repl {
class ReadConcernArgs;
}
+
/**
* Given the specified command and whether it supports read concern, returns an effective read
* concern which should be used.
@@ -55,4 +55,10 @@ StatusWith<repl::ReadConcernArgs> extractReadConcern(OperationContext* txn,
*/
Status waitForReadConcern(OperationContext* txn, const repl::ReadConcernArgs& readConcernArgs);
+/*
+ * Given a linearizable read command, confirm that
+ * current primary is still the true primary of the replica set.
+ */
+Status waitForLinearizableReadConcern(OperationContext* txn);
+
} // namespace mongo