summaryrefslogtreecommitdiff
path: root/src/mongo/db/read_concern.h
diff options
context:
space:
mode:
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