Details
-
Bug
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
3.6.11, 4.0.6, 4.1.7
-
None
-
Fully Compatible
-
ALL
-
v4.0, v3.6
-
Repl 2019-03-11
Description
The counters in ServerWriteConcernMetrics can overflow, since they are signed integers, and they are not protected by std::atomic. We should make these counters unsigned (preferably std::uint64_t). In order to append them to a BSONObj here, we can cast them to long long.