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

ReplSet::hbmsg() uses _hbmsgTime before initialized

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 1.9.0
    • None
    • Replication
    • None
    • ALL

    Description

      It looks like ReplSet::hbmsg() has different behavior depending on the value of _hbmsgTime, and valgrind is complaining that ReplSet::hbmsg() is being called when _hbmsgTime is uninitialized. It appears that _hbmsgTime gets set in ReplSetImpl::sethbmsg() but is not set in the ReplSetImpl constructor.

      Looks like ReplSet::hbmsg() returns an empty string regardless of the actual value of _hbmsgTime but still might be worth cleaning this up.

      Attachments

        Activity

          People

            kristina Kristina Chodorow (Inactive)
            aaron Aaron Staple
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: