summaryrefslogtreecommitdiff
path: root/src/mongo/db/projection.cpp
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2012-10-01 01:00:51 -0400
committerMathias Stearn <mathias@10gen.com>2012-10-01 01:00:51 -0400
commit5cab507f2de703d5829a9b889a984781da5e959a (patch)
tree2ae0639587bd38e5b7ec65e118697e7814b572a2 /src/mongo/db/projection.cpp
parent9bc9d5c7b438a9fae57bad9b71cc02fed903bc6d (diff)
downloadmongo-5cab507f2de703d5829a9b889a984781da5e959a.tar.gz
Revert "FastStringKey class to speed up lookups by c-strings in maps and sets"
This reverts commit 8eef85f69b66f87049a6a84cee88a9babb49efee.
Diffstat (limited to 'src/mongo/db/projection.cpp')
-rw-r--r--src/mongo/db/projection.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/projection.cpp b/src/mongo/db/projection.cpp
index 08960de6b1a..6c598f6daa7 100644
--- a/src/mongo/db/projection.cpp
+++ b/src/mongo/db/projection.cpp
@@ -176,8 +176,8 @@ namespace mongo {
MatchDetails arrayDetails;
arrayDetails.requestElemMatchKey();
if ( matcher->second->matches( in, &arrayDetails ) ) {
- log(4) << "Matched array on field: " << matcher->first.c_str() << endl
- << " from array: " << in.getField( matcher->first.c_str() ) << endl
+ log(4) << "Matched array on field: " << matcher->first << endl
+ << " from array: " << in.getField( matcher->first ) << endl
<< " in object: " << in << endl
<< " at position: " << arrayDetails.elemMatchKey() << endl;
FieldMap::const_iterator field = _fields.find( e.fieldName() );
@@ -192,7 +192,7 @@ namespace mongo {
arrayDetails.elemMatchKey() ).eoo() );
a.append( in.getField( e.fieldName() ).Obj()
.getField( arrayDetails.elemMatchKey() ) );
- o.appendArray( matcher->first.c_str(), a.arr() );
+ o.appendArray( matcher->first, a.arr() );
append( b, o.done().firstElement(), details, arrayOpType );
}
}