summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/cqf_command_utils.cpp
diff options
context:
space:
mode:
authorHenrik Edin <henrik.edin@mongodb.com>2023-02-09 12:08:10 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-02-13 16:55:03 +0000
commit78b5bb22426142e49b30c91cff0f1b6e99725047 (patch)
tree7412d4ee181a221884e52126e460eeb40b895776 /src/mongo/db/query/cqf_command_utils.cpp
parent13e038d492a20bb52c7f3322603815f503020cf5 (diff)
downloadmongo-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.cpp4
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() ||