diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-12-27 00:41:39 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-12-27 00:41:39 -0500 |
commit | 55744fd04cb8639465d36516e4791ef1eab7078e (patch) | |
tree | 130d159d8281ee12f440b429c01a8e4d475feeb3 /s/d_logic.cpp | |
parent | 2390b483bc07433a4b0c3a25b064c85e73c8f6d3 (diff) | |
download | mongo-55744fd04cb8639465d36516e4791ef1eab7078e.tar.gz |
short circuit if not in sharded mode
Diffstat (limited to 's/d_logic.cpp')
-rw-r--r-- | s/d_logic.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/s/d_logic.cpp b/s/d_logic.cpp index a02d7d6298c..d89999e9d25 100644 --- a/s/d_logic.cpp +++ b/s/d_logic.cpp @@ -481,6 +481,11 @@ namespace mongo { bool handlePossibleShardedMessage( Message &m, DbResponse &dbresponse ){ + + if ( shardConfigServer.empty() ){ + return false; + } + int op = m.data->operation(); if ( op < 2000 || op >= 3000 ) return false; |