mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 01:21:03 +01:00
fix subobject selector returning the same object twice
This commit is contained in:
parent
45683d835d
commit
7831db0d55
@ -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 ){
|
||||
|
Loading…
Reference in New Issue
Block a user