[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 |