diff options
author | Kristina <kristina@10gen.com> | 2011-10-04 16:41:04 -0400 |
---|---|---|
committer | Kristina <kristina@10gen.com> | 2011-10-05 14:19:28 -0400 |
commit | 13a291156db6d30587cfb4461c818b81b214d3cb (patch) | |
tree | 7eddb03eb62c26cc9d258a154449bcbbcb30ab7e /db/repl | |
parent | 6078b567e8c1461a5e3d9e547b32afb42a4f91af (diff) | |
download | mongo-13a291156db6d30587cfb4461c818b81b214d3cb.tar.gz |
added message identifying replica set hostname in log on startup
Diffstat (limited to 'db/repl')
-rw-r--r-- | db/repl/rs.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/db/repl/rs.cpp b/db/repl/rs.cpp index 59f8298f6f6..3bd44cce4e5 100644 --- a/db/repl/rs.cpp +++ b/db/repl/rs.cpp @@ -529,6 +529,9 @@ namespace mongo { if( m.h.isSelf() ) { assert( me++ == 0 ); mi = new Member(m.h, m._id, &m, true); + if (!reconf) { + log() << "replSet I am " << m.h.toString() << rsLog; + } setSelfTo(mi); if( (int)mi->id() == oldPrimaryId ) |