Skip to content

Commit

Permalink
ignore sharding state on secondaries consistently SERVER-4324
Browse files Browse the repository at this point in the history
  • Loading branch information
erh committed Nov 21, 2011
1 parent d2bf8fe commit 9a5b9cf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions s/d_state.cpp
Expand Up @@ -687,6 +687,11 @@ namespace mongo {
if ( ! shardingState.enabled() )
return true;

if ( ! isMasterNs( ns.c_str() ) ) {
// right now connections to secondaries aren't versioned at all
return true;
}

ShardedConnectionInfo* info = ShardedConnectionInfo::get( false );

if ( ! info ) {
Expand Down

0 comments on commit 9a5b9cf

Please sign in to comment.