Use defensive programming in DeadlineFuture destructor

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.0.10, 5.3.3, 6.0.0-rc9
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v6.0, v5.3, v5.0
    • 130
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      In src/mongo/db/process_health/deadline_future.h the destructor is using _timeoutCbHandle, which is optional. Optional is such for a reason, it doesn't have to be set.

            Assignee:
            Andrew Shuvalov (Inactive)
            Reporter:
            Andrew Shuvalov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: