summaryrefslogtreecommitdiff
path: root/src/mongo/db/index_legacy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/index_legacy.cpp')
-rw-r--r--src/mongo/db/index_legacy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/index_legacy.cpp b/src/mongo/db/index_legacy.cpp
index f477b562927..3cdf16f0255 100644
--- a/src/mongo/db/index_legacy.cpp
+++ b/src/mongo/db/index_legacy.cpp
@@ -55,13 +55,13 @@ StatusWith<BSONObj> IndexLegacy::adjustIndexSpecObject(const BSONObj& obj) {
}
// static
-BSONObj IndexLegacy::getMissingField(OperationContext* txn,
+BSONObj IndexLegacy::getMissingField(OperationContext* opCtx,
Collection* collection,
const BSONObj& infoObj) {
BSONObj keyPattern = infoObj.getObjectField("key");
std::string accessMethodName;
if (collection)
- accessMethodName = collection->getIndexCatalog()->getAccessMethodName(txn, keyPattern);
+ accessMethodName = collection->getIndexCatalog()->getAccessMethodName(opCtx, keyPattern);
else
accessMethodName = IndexNames::findPluginName(keyPattern);