ReplSet::hbmsg() uses _hbmsgTime before initialized

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • 1.9.0
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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.

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

              Created:
              Updated:
              Resolved: