-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Labels:
-
Fully Compatible
-
ALL
-
v6.2, v6.1, v6.0
-
Sharding EMEA 2022-11-28
-
143
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; } }
- is caused by
-
SERVER-69465 Accept same specs for $_internalAllCollectionStats as $collStats
- Closed