summaryrefslogtreecommitdiff
path: root/src/mongo/db/clientcursor.cpp
diff options
context:
space:
mode:
authorJason Rassi <rassi@10gen.com>2015-01-12 11:15:51 -0500
committerJason Rassi <rassi@10gen.com>2015-01-12 11:25:48 -0500
commitaacb51ba4e1c96de41fc928e58a6341db82076c4 (patch)
tree29d3173ad6bb8b5a5ae75b124b16c1831545b484 /src/mongo/db/clientcursor.cpp
parent4d73df94d51bc86a6a5b30dc3106cd7df6a3b7be (diff)
downloadmongo-aacb51ba4e1c96de41fc928e58a6341db82076c4.tar.gz
SERVER-16657 ClientCursor namespace set explicitly on construction
Diffstat (limited to 'src/mongo/db/clientcursor.cpp')
-rw-r--r--src/mongo/db/clientcursor.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/clientcursor.cpp b/src/mongo/db/clientcursor.cpp
index a98867d6291..50ca7e75d7a 100644
--- a/src/mongo/db/clientcursor.cpp
+++ b/src/mongo/db/clientcursor.cpp
@@ -72,16 +72,17 @@ namespace mongo {
ClientCursor::ClientCursor(CursorManager* cursorManager,
PlanExecutor* exec,
+ const std::string& ns,
int qopts,
const BSONObj query,
bool isAggCursor)
- : _cursorManager(cursorManager),
+ : _ns(ns),
+ _cursorManager(cursorManager),
_countedYet(false),
_isAggCursor(isAggCursor),
_unownedRU(NULL) {
_exec.reset(exec);
- _ns = exec->ns();
_query = query;
_queryOptions = qopts;
if (exec->collection()) {