diff options
Diffstat (limited to 'src/mongo/dbtests/query_stage_delete.cpp')
-rw-r--r-- | src/mongo/dbtests/query_stage_delete.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/dbtests/query_stage_delete.cpp b/src/mongo/dbtests/query_stage_delete.cpp index 6ff9419dd17..b362e23516f 100644 --- a/src/mongo/dbtests/query_stage_delete.cpp +++ b/src/mongo/dbtests/query_stage_delete.cpp @@ -81,7 +81,7 @@ public: _client.remove(nss.ns(), obj); } - void getRecordIds(Collection* collection, + void getRecordIds(const Collection* collection, CollectionScanParams::Direction direction, vector<RecordId>* out) { WorkingSet ws; @@ -133,7 +133,7 @@ public: void run() { dbtests::WriteContextForTests ctx(&_opCtx, nss.ns()); - Collection* coll = ctx.getCollection(); + const Collection* coll = ctx.getCollection(); ASSERT(coll); // Get the RecordIds that would be returned by an in-order scan. @@ -194,7 +194,7 @@ public: void run() { // Various variables we'll need. dbtests::WriteContextForTests ctx(&_opCtx, nss.ns()); - Collection* coll = ctx.getCollection(); + const Collection* coll = ctx.getCollection(); ASSERT(coll); const int targetDocIndex = 0; const BSONObj query = BSON("foo" << BSON("$gte" << targetDocIndex)); |