diff options
Diffstat (limited to 'src/mongo/dbtests/query_stage_count_scan.cpp')
-rw-r--r-- | src/mongo/dbtests/query_stage_count_scan.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mongo/dbtests/query_stage_count_scan.cpp b/src/mongo/dbtests/query_stage_count_scan.cpp index ea5711cbccd..7edfb5cbdaa 100644 --- a/src/mongo/dbtests/query_stage_count_scan.cpp +++ b/src/mongo/dbtests/query_stage_count_scan.cpp @@ -101,7 +101,7 @@ public: CountScanParams makeCountScanParams(OperationContext* opCtx, const IndexDescriptor* descriptor) { - return {opCtx, *descriptor}; + return {opCtx, descriptor}; } static const char* ns() { @@ -330,10 +330,10 @@ public: } // Prepare the cursor to yield - count.saveState(); + static_cast<PlanStage*>(&count)->saveState(); // Recover from yield - count.restoreState(); + static_cast<PlanStage*>(&count)->restoreState(); // finish counting while (PlanStage::IS_EOF != countState) { @@ -382,13 +382,13 @@ public: } // Prepare the cursor to yield - count.saveState(); + static_cast<PlanStage*>(&count)->saveState(); // Remove remaining objects remove(BSON("a" << GTE << 5)); // Recover from yield - count.restoreState(); + static_cast<PlanStage*>(&count)->restoreState(); // finish counting while (PlanStage::IS_EOF != countState) { @@ -437,7 +437,7 @@ public: } // Prepare the cursor to yield - count.saveState(); + static_cast<PlanStage*>(&count)->saveState(); // Insert one document before the end insert(BSON("a" << 5.5)); @@ -446,7 +446,7 @@ public: insert(BSON("a" << 6.5)); // Recover from yield - count.restoreState(); + static_cast<PlanStage*>(&count)->restoreState(); // finish counting while (PlanStage::IS_EOF != countState) { @@ -560,13 +560,13 @@ public: } // Prepare the cursor to yield - count.saveState(); + static_cast<PlanStage*>(&count)->saveState(); // Mark the key at position 5 as 'unused' remove(BSON("a" << 1 << "b" << 5)); // Recover from yield - count.restoreState(); + static_cast<PlanStage*>(&count)->restoreState(); // finish counting while (PlanStage::IS_EOF != countState) { |