summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/collection_validation_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/catalog/collection_validation_test.cpp')
-rw-r--r--src/mongo/db/catalog/collection_validation_test.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/db/catalog/collection_validation_test.cpp b/src/mongo/db/catalog/collection_validation_test.cpp
index 63dcc0d415a..c0955df1ed9 100644
--- a/src/mongo/db/catalog/collection_validation_test.cpp
+++ b/src/mongo/db/catalog/collection_validation_test.cpp
@@ -163,8 +163,7 @@ int insertDataRange(OperationContext* opCtx, int startIDNum, int endIDNum) {
<< " to " << endIDNum);
- AutoGetCollection autoColl(opCtx, kNss, MODE_IX);
- const Collection* coll = autoColl.getCollection();
+ AutoGetCollection coll(opCtx, kNss, MODE_IX);
std::vector<InsertStatement> inserts;
for (int i = startIDNum; i < endIDNum; ++i) {
auto doc = BSON("_id" << i);
@@ -183,8 +182,7 @@ int insertDataRange(OperationContext* opCtx, int startIDNum, int endIDNum) {
* Inserts a single invalid document into the kNss collection and then returns that count.
*/
int setUpInvalidData(OperationContext* opCtx) {
- AutoGetCollection autoColl(opCtx, kNss, MODE_IX);
- const Collection* coll = autoColl.getCollection();
+ AutoGetCollection coll(opCtx, kNss, MODE_IX);
RecordStore* rs = coll->getRecordStore();
{