-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 4.4.19
-
Component/s: None
-
Sharding EMEA
-
Fully Compatible
-
ALL
-
Sharding EMEA 2022-12-26
-
35
We must cast the numShardedCollections to “size_t” before appending to shardingStatistics in sharding_server_status.cpp.
const auto numShardedCollections = collection ? collection->numRecords(opCtx) : 0; result.appendNumber("numShardedCollections", numShardedCollections)
to
result.appendNumber("numShardedCollections", (std::size_t)numShardedCollections);