diff options
author | Kristina <kristina@10gen.com> | 2011-10-21 11:30:28 -0400 |
---|---|---|
committer | Kristina <kristina@10gen.com> | 2011-10-21 11:30:28 -0400 |
commit | 8a9c636fbde1e2e3b6d2154616aa80786f845be4 (patch) | |
tree | 0d6980dd6c797608979ca2d76528a5270037e7fd | |
parent | 85902e0e826ba543f9ea6021e0d370fcc6dd6854 (diff) | |
download | mongo-8a9c636fbde1e2e3b6d2154616aa80786f845be4.tar.gz |
do not initial sync from a secondary that does not build indexes
-rw-r--r-- | db/repl/rs_initialsync.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/db/repl/rs_initialsync.cpp b/db/repl/rs_initialsync.cpp index 5a540594305..5330c974d54 100644 --- a/db/repl/rs_initialsync.cpp +++ b/db/repl/rs_initialsync.cpp @@ -158,6 +158,7 @@ namespace mongo { for( Member *m = head(); m; m = m->next() ) { if (!m->hbinfo().up() || + !m->config().buildIndexes || (m->state() != MemberState::RS_SECONDARY && m->state() != MemberState::RS_PRIMARY) || (secondaryOnly && m->state() != MemberState::RS_SECONDARY) || |