Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
Fully Compatible
-
ALL
-
v6.2, v6.1, v6.0
-
Sharding EMEA 2022-11-28
-
143
Description
In order to solve this bug we must check that '_internalAllCollectionStatsSpec.getStats()' exists before calling 'makeStatsForNs' in 'document_source_internal_all_collection_stats.cpp':
if (const auto& specs = _internalAllCollectionStatsSpec.getStats()) { |
try { |
return {Document{DocumentSourceCollStats::makeStatsForNs( |
pExpCtx, nss, specs.get(), _projectFilter)}};
|
} catch (const ExceptionFor<ErrorCodes::CommandNotSupportedOnView>&) { |
continue; |
}
|
}
|
Attachments
Issue Links
- is caused by
-
SERVER-69465 Accept same specs for $_internalAllCollectionStats as $collStats
-
- Closed
-