diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-04-26 18:41:26 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-04-26 18:41:37 -0400 |
commit | 0e6200e16dad433a8e22529668706dc4fc146313 (patch) | |
tree | 271ce71abe87c6b5cddf52758251544c68be98a0 /db | |
parent | 4916ede8e55f41d9c1424ef0d6ba4460bdefffb1 (diff) | |
download | mongo-0e6200e16dad433a8e22529668706dc4fc146313.tar.gz |
assert that i think makes sense
Diffstat (limited to 'db')
-rw-r--r-- | db/repl/rs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/db/repl/rs.h b/db/repl/rs.h index 9c1948e67a4..2e415fa6e84 100644 --- a/db/repl/rs.h +++ b/db/repl/rs.h @@ -505,6 +505,7 @@ namespace mongo { inline Member::Member(HostAndPort h, unsigned ord, const ReplSetConfig::MemberCfg *c, bool self) : _config(*c), _h(h), _hbinfo(ord) { + assert(c); if( self ) _hbinfo.health = 1.0; } |