summaryrefslogtreecommitdiff
path: root/src/mongo/db/clientcursor.h
diff options
context:
space:
mode:
authorXiangyu Yao <xiangyu.yao@mongodb.com>2018-03-07 15:10:10 -0500
committerXiangyu Yao <xiangyu.yao@mongodb.com>2018-03-09 18:06:06 -0500
commit4ef0fe789ef349307c4cffd6548dc8657059cca5 (patch)
treed13f1dd19a97ca4e9a1e082f566bb0d59cee3147 /src/mongo/db/clientcursor.h
parented1e2b4d2a4987e3744484f9482fdc7a0e119e94 (diff)
downloadmongo-4ef0fe789ef349307c4cffd6548dc8657059cca5.tar.gz
SERVER-33609 Pass readConcernLevel to WiredTigerRecoveryUnit
Diffstat (limited to 'src/mongo/db/clientcursor.h')
-rw-r--r--src/mongo/db/clientcursor.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mongo/db/clientcursor.h b/src/mongo/db/clientcursor.h
index b5e917acbe0..b811fc47722 100644
--- a/src/mongo/db/clientcursor.h
+++ b/src/mongo/db/clientcursor.h
@@ -37,6 +37,7 @@
#include "mongo/db/logical_session_id.h"
#include "mongo/db/query/plan_executor.h"
#include "mongo/db/record_id.h"
+#include "mongo/db/repl/read_concern_level.h"
#include "mongo/stdx/functional.h"
#include "mongo/util/net/message.h"
@@ -57,11 +58,11 @@ struct ClientCursorParams {
ClientCursorParams(std::unique_ptr<PlanExecutor, PlanExecutor::Deleter> planExecutor,
NamespaceString nss,
UserNameIterator authenticatedUsersIter,
- bool isReadCommitted,
+ repl::ReadConcernLevel readConcernLevel,
BSONObj originatingCommandObj)
: exec(std::move(planExecutor)),
nss(std::move(nss)),
- isReadCommitted(isReadCommitted),
+ readConcernLevel(readConcernLevel),
queryOptions(exec->getCanonicalQuery()
? exec->getCanonicalQuery()->getQueryRequest().getOptions()
: 0),
@@ -88,7 +89,7 @@ struct ClientCursorParams {
std::unique_ptr<PlanExecutor, PlanExecutor::Deleter> exec;
const NamespaceString nss;
std::vector<UserName> authenticatedUsers;
- bool isReadCommitted = false;
+ const repl::ReadConcernLevel readConcernLevel;
int queryOptions = 0;
BSONObj originatingCommandObj;
};
@@ -133,8 +134,8 @@ public:
return _txnNumber;
}
- bool isReadCommitted() const {
- return _isReadCommitted;
+ repl::ReadConcernLevel getReadConcernLevel() const {
+ return _readConcernLevel;
}
/**
@@ -307,7 +308,7 @@ private:
// A transaction number for this cursor, if it was provided in the originating command.
const boost::optional<TxnNumber> _txnNumber;
- const bool _isReadCommitted = false;
+ const repl::ReadConcernLevel _readConcernLevel;
CursorManager* _cursorManager;