summaryrefslogtreecommitdiff
path: root/s/d_logic.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-12-27 00:41:39 -0500
committerEliot Horowitz <eliot@10gen.com>2009-12-27 00:41:39 -0500
commit55744fd04cb8639465d36516e4791ef1eab7078e (patch)
tree130d159d8281ee12f440b429c01a8e4d475feeb3 /s/d_logic.cpp
parent2390b483bc07433a4b0c3a25b064c85e73c8f6d3 (diff)
downloadmongo-55744fd04cb8639465d36516e4791ef1eab7078e.tar.gz
short circuit if not in sharded mode
Diffstat (limited to 's/d_logic.cpp')
-rw-r--r--s/d_logic.cpp5
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;