diff options
author | David Storch <david.storch@10gen.com> | 2014-07-15 17:30:02 -0400 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2014-07-22 09:24:11 -0400 |
commit | 7ffac7f351b80f84589349e44693a94d5cc5e14c (patch) | |
tree | 3707298920eabe877af03963f3f61f74c5a61fc5 /src/mongo/db/clientcursor.cpp | |
parent | fb270d89cbcfdb98c3cee3e631c76ca035c7b4f0 (diff) | |
download | mongo-7ffac7f351b80f84589349e44693a94d5cc5e14c.tar.gz |
SERVER-14407 replace Runner with PlanExecutor
Diffstat (limited to 'src/mongo/db/clientcursor.cpp')
-rw-r--r-- | src/mongo/db/clientcursor.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mongo/db/clientcursor.cpp b/src/mongo/db/clientcursor.cpp index 80fb8d0694e..ae6d16a2998 100644 --- a/src/mongo/db/clientcursor.cpp +++ b/src/mongo/db/clientcursor.cpp @@ -69,16 +69,16 @@ namespace mongo { return cursorStatsOpen.get(); } - ClientCursor::ClientCursor(const Collection* collection, Runner* runner, + ClientCursor::ClientCursor(const Collection* collection, PlanExecutor* exec, int qopts, const BSONObj query) : _collection( collection ), _countedYet( false ) { - _runner.reset(runner); - _ns = runner->ns(); + _exec.reset(exec); + _ns = exec->ns(); _query = query; _queryOptions = qopts; - if ( runner->collection() ) { - invariant( collection == runner->collection() ); + if ( exec->collection() ) { + invariant( collection == exec->collection() ); } init(); } @@ -141,8 +141,8 @@ namespace mongo { } void ClientCursor::kill() { - if ( _runner.get() ) - _runner->kill(); + if ( _exec.get() ) + _exec->kill(); _collection = NULL; } |