diff options
author | Benety Goh <benety@mongodb.com> | 2021-04-02 15:35:53 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-04-02 20:26:52 +0000 |
commit | f850e882ade7d59c39f76c675f5e77ca8c80ac1a (patch) | |
tree | edd115bb8474c0612273d89c3ecb21752aacc798 /src/mongo/db/system_index.cpp | |
parent | 6cd150680b8b8af5204e5f442d7685323e82cb3b (diff) | |
download | mongo-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.cpp | 11 |
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; |