diff options
author | Jason Rassi <rassi@10gen.com> | 2014-12-23 12:06:46 -0500 |
---|---|---|
committer | Jason Rassi <rassi@10gen.com> | 2014-12-23 22:55:51 -0500 |
commit | 7494d33c77932db60fb8cdcc1abb178e67d8c60a (patch) | |
tree | e0f2a6bd2ca23f41a0044663c48a00ba07554cb4 /src/mongo/db/commands/parallel_collection_scan.cpp | |
parent | 6105f06402fe1e7578d41f3e4e583a1476ef2455 (diff) | |
download | mongo-7494d33c77932db60fb8cdcc1abb178e67d8c60a.tar.gz |
SERVER-16520 ClientCursor keeps ptr to owning CollectionCursorCache
Changes ClientCursor::_collection to ClientCursor::_cursorCache, and
updates ClientCursor/ClientCursorPin interfaces accordingly.
Diffstat (limited to 'src/mongo/db/commands/parallel_collection_scan.cpp')
-rw-r--r-- | src/mongo/db/commands/parallel_collection_scan.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/commands/parallel_collection_scan.cpp b/src/mongo/db/commands/parallel_collection_scan.cpp index fed47ad30d2..e36ad731d83 100644 --- a/src/mongo/db/commands/parallel_collection_scan.cpp +++ b/src/mongo/db/commands/parallel_collection_scan.cpp @@ -137,7 +137,8 @@ namespace mongo { for (size_t i = 0; i < execs.size(); i++) { // transfer ownership of an executor to the ClientCursor (which manages its own // lifetime). - ClientCursor* cc = new ClientCursor( collection, execs.releaseAt(i) ); + ClientCursor* cc = new ClientCursor( collection->cursorCache(), + execs.releaseAt(i) ); // we are mimicking the aggregation cursor output here // that is why there are ns, ok and empty firstBatch |