summaryrefslogtreecommitdiff
path: root/src/mongo/db/system_index.cpp
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2021-04-02 15:35:53 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-04-02 20:26:52 +0000
commitf850e882ade7d59c39f76c675f5e77ca8c80ac1a (patch)
treeedd115bb8474c0612273d89c3ecb21752aacc798 /src/mongo/db/system_index.cpp
parent6cd150680b8b8af5204e5f442d7685323e82cb3b (diff)
downloadmongo-f850e882ade7d59c39f76c675f5e77ca8c80ac1a.tar.gz
SERVER-55708 remove unused parameter from index_key_validate::validateIndexSpec()
Diffstat (limited to 'src/mongo/db/system_index.cpp')
-rw-r--r--src/mongo/db/system_index.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/mongo/db/system_index.cpp b/src/mongo/db/system_index.cpp
index c2eedda74ea..3cfb424ab45 100644
--- a/src/mongo/db/system_index.cpp
+++ b/src/mongo/db/system_index.cpp
@@ -101,8 +101,7 @@ void generateSystemIndexForExistingCollection(OperationContext* opCtx,
invariant(!opCtx->lockState()->inAWriteUnitOfWork());
try {
- auto indexSpecStatus = index_key_validate::validateIndexSpec(
- opCtx, spec.toBSON(), serverGlobalParams.featureCompatibility);
+ auto indexSpecStatus = index_key_validate::validateIndexSpec(opCtx, spec.toBSON());
BSONObj indexSpec = fassert(40452, indexSpecStatus);
LOGV2(22488,
@@ -204,15 +203,11 @@ void createSystemIndexes(OperationContext* opCtx, CollectionWriter& collection)
BSONObj indexSpec;
if (ns == AuthorizationManager::usersCollectionNamespace) {
indexSpec = fassert(
- 40455,
- index_key_validate::validateIndexSpec(
- opCtx, v3SystemUsersIndexSpec.toBSON(), serverGlobalParams.featureCompatibility));
+ 40455, index_key_validate::validateIndexSpec(opCtx, v3SystemUsersIndexSpec.toBSON()));
} else if (ns == AuthorizationManager::rolesCollectionNamespace) {
indexSpec = fassert(
- 40457,
- index_key_validate::validateIndexSpec(
- opCtx, v3SystemRolesIndexSpec.toBSON(), serverGlobalParams.featureCompatibility));
+ 40457, index_key_validate::validateIndexSpec(opCtx, v3SystemRolesIndexSpec.toBSON()));
}
if (!indexSpec.isEmpty()) {
auto fromMigrate = false;