diff options
author | Misha Tyulenev <misha@mongodb.com> | 2017-10-26 18:34:38 -0400 |
---|---|---|
committer | Misha Tyulenev <misha@mongodb.com> | 2017-10-26 18:37:04 -0400 |
commit | 54f044558c0845adcc6b51c2351e8382a3e9bbd7 (patch) | |
tree | 298fe9462d1e77ae5eec6d5672bb047fb5441577 /src/mongo/db/read_concern.h | |
parent | 260fd0c76599520d9d733874753a94a2db763538 (diff) | |
download | mongo-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.h | 7 |
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 |