summaryrefslogtreecommitdiff
path: root/src/mongo/db/read_concern.h
diff options
context:
space:
mode:
authorMisha Tyulenev <misha@mongodb.com>2017-10-26 18:34:38 -0400
committerMisha Tyulenev <misha@mongodb.com>2017-10-26 18:37:04 -0400
commit54f044558c0845adcc6b51c2351e8382a3e9bbd7 (patch)
tree298fe9462d1e77ae5eec6d5672bb047fb5441577 /src/mongo/db/read_concern.h
parent260fd0c76599520d9d733874753a94a2db763538 (diff)
downloadmongo-54f044558c0845adcc6b51c2351e8382a3e9bbd7.tar.gz
SERVER-31613 disallow afterClusterTime on some commands
Diffstat (limited to 'src/mongo/db/read_concern.h')
-rw-r--r--src/mongo/db/read_concern.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mongo/db/read_concern.h b/src/mongo/db/read_concern.h
index 8c01e902f01..f50178c6956 100644
--- a/src/mongo/db/read_concern.h
+++ b/src/mongo/db/read_concern.h
@@ -43,9 +43,12 @@ class ReadConcernArgs;
/**
* Given the specified read concern arguments, performs checks that the read concern can actually be
* satisfied given the current state of the server and if so calls into the replication subsystem to
- * perform the wait.
+ * perform the wait. If allowAfterClusterTime is false returns an error if afterClusterTime is
+ * set on the readConcernArgs.
*/
-Status waitForReadConcern(OperationContext* opCtx, const repl::ReadConcernArgs& readConcernArgs);
+Status waitForReadConcern(OperationContext* opCtx,
+ const repl::ReadConcernArgs& readConcernArgs,
+ bool allowAfterClusterTime);
/*
* Given a linearizable read command, confirm that