diff options
author | Dan Pasette <dan@10gen.com> | 2015-02-09 16:24:56 -0500 |
---|---|---|
committer | Dan Pasette <dan@mongodb.com> | 2015-02-09 18:39:49 -0500 |
commit | 6d981db23d9ec7cdbfc3cbce8d6323ec0b6be816 (patch) | |
tree | e7ed45eac4eb9a64730cf4c5f588deec2c251455 | |
parent | c9756fd528cc009cfd83c5bcfe9e309344f5e781 (diff) | |
download | mongo-6d981db23d9ec7cdbfc3cbce8d6323ec0b6be816.tar.gz |
SERVER-17191 remove warning on 2.6 mongods when connected to from 2.8 mongos
-rw-r--r-- | src/mongo/s/d_state.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/s/d_state.cpp b/src/mongo/s/d_state.cpp index 031ac2a15fe..cd275c36cb6 100644 --- a/src/mongo/s/d_state.cpp +++ b/src/mongo/s/d_state.cpp @@ -916,7 +916,8 @@ namespace mongo { bool checkMongosID( ShardedConnectionInfo* info, const BSONElement& id, string& errmsg ) { if ( id.type() != jstOID ) { if ( ! info->hasID() ) { - warning() << "bad serverID set in setShardVersion and none in info: " << id << endl; + // this is only for connections using the WBL (<= v2.4) + LOG(1) << "warning: bad serverID set in setShardVersion and none in info: " << id << endl; } // TODO: fix this //errmsg = "need serverID to be an OID"; |