[SERVER-2509] ReplSet::hbmsg() uses _hbmsgTime before initialized Created: 09/Feb/11  Updated: 12/Jul/16  Resolved: 01/Apr/11

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 1.9.0

Type: Bug Priority: Minor - P4
Reporter: Aaron Staple Assignee: Kristina Chodorow (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 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.



 Comments   
Comment by auto [ 01/Apr/11 ]

Author:

{u'login': u'kchodorow', u'name': u'Kristina', u'email': u'kristina@10gen.com'}

Message: initialize _hbmsgTime before it's used SERVER-2509
Branch: master
https://github.com/mongodb/mongo/commit/ad78ff6280e928b93fb2e6aacd69e617949eb9e4

Generated at Thu Feb 08 03:00:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.