diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-04-27 01:30:00 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-04-27 01:30:00 -0400 |
commit | 61c601a678cc9408c7d629e055331c3eed98f879 (patch) | |
tree | aff816d50b1a02e7ac8d356f8dc920990bad38a3 | |
parent | 336a1db69131635d33f3b7cf8a7a31353d10407c (diff) | |
download | mongo-61c601a678cc9408c7d629e055331c3eed98f879.tar.gz |
another assert
-rw-r--r-- | db/repl/rs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/repl/rs.h b/db/repl/rs.h index 2e415fa6e84..5b8863aa161 100644 --- a/db/repl/rs.h +++ b/db/repl/rs.h @@ -379,7 +379,7 @@ namespace mongo { void loadConfig(); list<HostAndPort> memberHostnames() const; - const ReplSetConfig::MemberCfg& myConfig() const { return _self->config(); } + const ReplSetConfig::MemberCfg& myConfig() const { assert( _self ); return _self->config(); } bool iAmArbiterOnly() const { return myConfig().arbiterOnly; } bool iAmPotentiallyHot() const { return myConfig().potentiallyHot() && elect.steppedDown <= time(0); } protected: |