Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
None
-
Fully Compatible
-
ALL
-
v5.0, v4.4
-
Service Arch 2021-07-12
Description
SERVER-44047 added an AtomicWord* parameter to several Interruptible wait functions, expressed as an AtomicWord<Microseconds::rep>*. This provides no type safety about the Duration it represents. There's no difference in the type system between Microseconds::rep, Milliseconds::rep, or plain int64_t. Another parameter to these functions is a Milliseconds duration, so it's easy to get confused. We should be able to directly accept an atomically-updated Duration, or come up with a typesafe proxy that can synchronously update a Duration.
Attachments
Issue Links
- is related to
-
SERVER-44047 Add AtomicWord ptr timer cache to Interruptible::waitForConditionOrInterrupt*()
-
- Closed
-