Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-10879

Description of lastHeartbeat and lastHeartbeatRecv is incorrect

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      The docs say

      • lastHeartbeat - time of the transmission time of last heartbeat received from this member
      • lastHeartbeatRecv - time that the last heartbeat was received from this member

      whereas the code comment says

          // This is the last time we got a response from a heartbeat request to a given member.
          Date_t _lastHeartbeat;
          // This is the last time we got a heartbeat request from a given member.
          Date_t _lastHeartbeatRecv;
      

      The description in the docs for lastHeartbeat is inconsistent with the code comment.

      Also the code comments mention "requests" and "responses", and I think the docs would be clearer if they did the same.

            Assignee:
            Unassigned Unassigned
            Reporter:
            bruce.lucas@mongodb.com Bruce Lucas (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              6 years, 29 weeks, 4 days ago