Permalink
Browse files

do not initial sync from a secondary that does not build indexes

  • Loading branch information...
1 parent 85902e0 commit 8a9c636fbde1e2e3b6d2154616aa80786f845be4 @kchodorow kchodorow committed Oct 21, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 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) ||

0 comments on commit 8a9c636

Please sign in to comment.