summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/count_scan.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/exec/count_scan.h')
-rw-r--r--src/mongo/db/exec/count_scan.h21
1 files changed, 2 insertions, 19 deletions
diff --git a/src/mongo/db/exec/count_scan.h b/src/mongo/db/exec/count_scan.h
index 54bdaf8db2f..e1b3966a22e 100644
--- a/src/mongo/db/exec/count_scan.h
+++ b/src/mongo/db/exec/count_scan.h
@@ -89,16 +89,6 @@ namespace mongo {
static const char* kStageType;
private:
- /**
- * Initialize the underlying IndexCursor
- */
- void initIndexCursor();
-
- /**
- * See if we've hit the end yet.
- */
- void checkEnd();
-
// transactional context for read locks. Not owned by us
OperationContext* _txn;
@@ -109,21 +99,14 @@ namespace mongo {
const IndexDescriptor* _descriptor;
const IndexAccessMethod* _iam;
- // Our start cursor.
- boost::scoped_ptr<IndexCursor> _cursor;
-
- // Our end marker.
- boost::scoped_ptr<IndexCursor> _endCursor;
+ std::unique_ptr<SortedDataInterface::Cursor> _cursor;
// Could our index have duplicates? If so, we use _returned to dedup.
+ bool _shouldDedup;
unordered_set<RecordId, RecordId::Hasher> _returned;
CountScanParams _params;
- bool _hitEnd;
-
- bool _shouldDedup;
-
CommonStats _commonStats;
CountScanStats _specificStats;
};