summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/queryutil.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/db/queryutil.cpp b/db/queryutil.cpp
index 48c2e03bf8c..4a99736ddac 100644
--- a/db/queryutil.cpp
+++ b/db/queryutil.cpp
@@ -258,6 +258,7 @@ namespace mongo {
if ( e.eoo() )
return;
b.append(e);
+ return;
}
string left = path.substr( 0 , i );
@@ -280,6 +281,7 @@ namespace mongo {
for( multimap<string,string>::const_iterator i = p.first; i != p.second; ++i ) {
string next = i->second;
+
if ( e.eoo() ){
}
else if ( next.size() == 0 || next == "." || e.type() != Object ){