summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2011-04-27 01:30:00 -0400
committerEliot Horowitz <eliot@10gen.com>2011-04-27 01:30:00 -0400
commit61c601a678cc9408c7d629e055331c3eed98f879 (patch)
treeaff816d50b1a02e7ac8d356f8dc920990bad38a3
parent336a1db69131635d33f3b7cf8a7a31353d10407c (diff)
downloadmongo-61c601a678cc9408c7d629e055331c3eed98f879.tar.gz
another assert
-rw-r--r--db/repl/rs.h2
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: