diff options
author | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2017-06-15 00:17:19 -0400 |
---|---|---|
committer | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2017-06-15 00:17:19 -0400 |
commit | 59ea14f97808e343a4a10a1b5352b7096b695e38 (patch) | |
tree | dfd0d9b7b04819f7e321ad8c63ac4971be85d5a8 /src/mongo/db/clientcursor.h | |
parent | 3ac29e19745e4a594bff892f3de8372159770565 (diff) | |
download | mongo-59ea14f97808e343a4a10a1b5352b7096b695e38.tar.gz |
Revert "SERVER-29417 Attach logical session ids to cursors"
This reverts commit 65828661c6579989fdbb43f2c21de16f2bf72586.
Diffstat (limited to 'src/mongo/db/clientcursor.h')
-rw-r--r-- | src/mongo/db/clientcursor.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/mongo/db/clientcursor.h b/src/mongo/db/clientcursor.h index 32fb018a8e1..d2f216b01e1 100644 --- a/src/mongo/db/clientcursor.h +++ b/src/mongo/db/clientcursor.h @@ -28,13 +28,10 @@ #pragma once -#include <boost/optional.hpp> - #include "mongo/client/dbclientinterface.h" #include "mongo/db/auth/user_name.h" #include "mongo/db/cursor_id.h" #include "mongo/db/jsobj.h" -#include "mongo/db/logical_session_id.h" #include "mongo/db/query/plan_executor.h" #include "mongo/db/record_id.h" #include "mongo/stdx/functional.h" @@ -111,10 +108,6 @@ public: return makeUserNameIterator(_authenticatedUsers.begin(), _authenticatedUsers.end()); } - boost::optional<LogicalSessionId> getSessionId() const { - return _lsid; - } - bool isReadCommitted() const { return _isReadCommitted; } @@ -225,10 +218,9 @@ private: * Constructs a ClientCursor. Since cursors must come into being registered and pinned, this is * private. See cursor_manager.h for more details. */ - ClientCursor(ClientCursorParams params, + ClientCursor(ClientCursorParams&& params, CursorManager* cursorManager, CursorId cursorId, - boost::optional<LogicalSessionId> lsid, Date_t now); /** @@ -265,9 +257,6 @@ private: // The set of authenticated users when this cursor was created. std::vector<UserName> _authenticatedUsers; - // A logical session id for this cursor, if it is running inside of a session. - const boost::optional<LogicalSessionId> _lsid; - const bool _isReadCommitted = false; CursorManager* _cursorManager; |