summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2011-11-21 13:12:27 -0500
committerEliot Horowitz <eliot@10gen.com>2011-11-21 13:13:17 -0500
commitd69d52ceef293c7888eb9c507dacf40a48b8abe0 (patch)
tree215a1e2f4cbb22989dc5d818ecced304a55487a0
parentc0588190d401824422ca6c9a0c9744cfcb62e9a1 (diff)
downloadmongo-d69d52ceef293c7888eb9c507dacf40a48b8abe0.tar.gz
ignore sharding state on secondaries consistently SERVER-4324
-rw-r--r--s/d_state.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/s/d_state.cpp b/s/d_state.cpp
index 4c53098052d..929d2a86f36 100644
--- a/s/d_state.cpp
+++ b/s/d_state.cpp
@@ -676,6 +676,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 ) {