Fix opCtx and baton waits

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.0.7, 4.1.8
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Fully Compatible
    • ALL
    • v4.0
    • Service Arch 2019-02-11, Service Arch 2019-02-25
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      BF-12091 found two bugs:

      1. Interruptible::waitForConditionOrInterruptFor with a predicate didn't wait the correct amount of time.

      2. baton_asio_linux would fail to expire timers whose deadline == now (only expiring those 1 millisecond past now). This caused it to spin unnecessarily just as timers were expiring.

              Assignee:
              Mira Carey
              Reporter:
              Mira Carey
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: