summaryrefslogtreecommitdiff
path: root/db/queryutil.cpp
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2010-10-02 12:25:35 -0700
committerAaron <aaron@10gen.com>2010-10-02 12:25:35 -0700
commitd3b2dddd7400f0efec97e3d5913847ee5c5a20a0 (patch)
treec44e0d83bad041975c1546c74e6e36e1aa06a677 /db/queryutil.cpp
parent75351ec80f2beefe6f39f3535719e8b51654e002 (diff)
downloadmongo-d3b2dddd7400f0efec97e3d5913847ee5c5a20a0.tar.gz
SERVER-1883 in or de duping, correctly retrieve nested field for match document
Diffstat (limited to 'db/queryutil.cpp')
-rw-r--r--db/queryutil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/queryutil.cpp b/db/queryutil.cpp
index 175460e1b4c..01440ddc511 100644
--- a/db/queryutil.cpp
+++ b/db/queryutil.cpp
@@ -1029,7 +1029,7 @@ namespace mongo {
BSONElement kk = k.next();
int number = (int) kk.number();
bool forward = ( number >= 0 ? 1 : -1 ) * ( _direction >= 0 ? 1 : -1 ) > 0;
- BSONElement e = obj.getField( kk.fieldName() );
+ BSONElement e = obj.getFieldDotted( kk.fieldName() );
if ( e.eoo() ) {
e = staticNull.firstElement();
}