diff options
author | Henrik Edin <henrik.edin@mongodb.com> | 2023-02-09 12:08:10 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-02-13 16:55:03 +0000 |
commit | 78b5bb22426142e49b30c91cff0f1b6e99725047 (patch) | |
tree | 7412d4ee181a221884e52126e460eeb40b895776 /src/mongo/db/query/cqf_command_utils.cpp | |
parent | 13e038d492a20bb52c7f3322603815f503020cf5 (diff) | |
download | mongo-78b5bb22426142e49b30c91cff0f1b6e99725047.tar.gz |
SERVER-73780 Make CollectionPtr constructor explicit
Diffstat (limited to 'src/mongo/db/query/cqf_command_utils.cpp')
-rw-r--r-- | src/mongo/db/query/cqf_command_utils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/query/cqf_command_utils.cpp b/src/mongo/db/query/cqf_command_utils.cpp index 9cb861a8695..55a8987acec 100644 --- a/src/mongo/db/query/cqf_command_utils.cpp +++ b/src/mongo/db/query/cqf_command_utils.cpp @@ -1053,7 +1053,7 @@ bool isEligibleCommon(const RequestType& request, request.getLegacyRuntimeConstants(); bool unsupportedIndexType = [&]() { - if (collection == nullptr) + if (!collection) return false; const IndexCatalog& indexCatalog = *collection->getIndexCatalog(); @@ -1079,7 +1079,7 @@ bool isEligibleCommon(const RequestType& request, }(); bool unsupportedCollectionType = [&]() { - if (collection == nullptr) + if (!collection) return false; if (collection->isClustered() || !collection->getCollectionOptions().collation.isEmpty() || |