Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-14428

Display OpTime in decimal

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
      None

      In many places we display optime in decimal (e.g. in rs.status()), but elsewhere the 'seconds' part of the optime is displayed in hex, which can make debugging a bit inconvenient. e.g. the following message string (also in rs.status())

      "lastHeartbeatMessage" : "still syncing, not yet to minValid optime 53b2817e:349",
      

      It would be good if OpTime::toString() could be changed to print the time in decimal.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jon.rangel@mongodb.com Jon Rangel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: