summaryrefslogtreecommitdiff
path: root/src/mongo/db/clientcursor.h
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2017-04-21 18:09:49 -0400
committerDavid Storch <david.storch@10gen.com>2017-04-21 18:18:48 -0400
commitd36bda7504883775be245d829ce7ada221d182ec (patch)
treeeab5e21ef0fd8029b4bd750057a3db51f82916ea /src/mongo/db/clientcursor.h
parentcdf7d99b56b24780b9586d54d8c5c6995b126c1e (diff)
downloadmongo-d36bda7504883775be245d829ce7ada221d182ec.tar.gz
SERVER-28309 remove RangePreserver class
RangePreserver was an old way to ensure that necessary chunk ranges are not deleted during query execution. This is now handled by ScopedCollectionMetadata.
Diffstat (limited to 'src/mongo/db/clientcursor.h')
-rw-r--r--src/mongo/db/clientcursor.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/mongo/db/clientcursor.h b/src/mongo/db/clientcursor.h
index e23c0101775..d1d299f0d0d 100644
--- a/src/mongo/db/clientcursor.h
+++ b/src/mongo/db/clientcursor.h
@@ -112,6 +112,10 @@ public:
return _isReadCommitted;
}
+ /**
+ * Returns a pointer to the underlying query plan executor. All cursors manage a PlanExecutor,
+ * so this method never returns a null pointer.
+ */
PlanExecutor* getExecutor() const {
return _exec.get();
}
@@ -234,11 +238,6 @@ private:
ClientCursor(ClientCursorParams&& params, CursorManager* cursorManager, CursorId cursorId);
/**
- * Constructs a special ClientCursor used to track sharding state for the given collection.
- */
- ClientCursor(const Collection* collection, CursorManager* cursorManager, CursorId cursorId);
-
- /**
* Destroys a ClientCursor. This is private, since only the CursorManager or the ClientCursorPin
* is allowed to destroy a cursor.
*
@@ -285,9 +284,6 @@ private:
// an error to use a ClientCursor once it has been disposed.
bool _disposed = false;
- // TODO SERVER-28309 Remove this field and instead use _exec->markedAsKilled().
- bool _killed = false;
-
// Tracks the number of results returned by this cursor so far.
long long _pos = 0;
@@ -312,7 +308,7 @@ private:
// Unused maxTime budget for this cursor.
Microseconds _leftoverMaxTimeMicros = Microseconds::max();
- // The underlying query execution machinery.
+ // The underlying query execution machinery. Must be non-null.
std::unique_ptr<PlanExecutor, PlanExecutor::Deleter> _exec;
};