diff options
author | Jason Rassi <rassi@10gen.com> | 2015-01-12 11:15:51 -0500 |
---|---|---|
committer | Jason Rassi <rassi@10gen.com> | 2015-01-12 11:25:48 -0500 |
commit | aacb51ba4e1c96de41fc928e58a6341db82076c4 (patch) | |
tree | 29d3173ad6bb8b5a5ae75b124b16c1831545b484 /src/mongo/db/clientcursor.cpp | |
parent | 4d73df94d51bc86a6a5b30dc3106cd7df6a3b7be (diff) | |
download | mongo-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.cpp | 5 |
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()) { |