summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/jsobj.cpp2
-rw-r--r--db/pdfile.cpp1
2 files changed, 1 insertions, 2 deletions
diff --git a/db/jsobj.cpp b/db/jsobj.cpp
index fe9d2dfecb8..d830c8ca8c7 100644
--- a/db/jsobj.cpp
+++ b/db/jsobj.cpp
@@ -364,7 +364,7 @@ JSObj JSObj::extractFields(JSObj pattern, JSObjBuilder& b) {
Element e = i.next();
if( e.eoo() )
break;
- Element x = getField(e.fieldName());
+ Element x = getFieldDotted(e.fieldName());
if( x.eoo() )
return JSObj();
b.append(x);
diff --git a/db/pdfile.cpp b/db/pdfile.cpp
index 39eef5e5c0b..0335bc26d19 100644
--- a/db/pdfile.cpp
+++ b/db/pdfile.cpp
@@ -415,7 +415,6 @@ void IndexDetails::getKeysFromObject(JSObj& obj, set<JSObj>& keys) {
return;
}
JSObj arr = f.embeddedObject();
-// cout << arr.toString() << endl;
JSElemIter i(arr);
while( i.more() ) {
Element e = i.next();