0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 00:56:44 +01:00

Remove copy() that should be unnecessary

This commit is contained in:
Aaron 2009-03-03 15:28:15 -05:00
parent dbaa985014
commit c606e65477

View File

@ -43,7 +43,7 @@ namespace mongo {
return queryCache_[ ns ][ pattern ].second;
}
void registerIndexForPattern( const string &ns, const QueryPattern &pattern, const BSONObj &indexKey, int nScanned ) {
queryCache_[ ns ][ pattern ] = make_pair( indexKey.copy(), nScanned );
queryCache_[ ns ][ pattern ] = make_pair( indexKey, nScanned );
}
FieldBound::FieldBound( const BSONElement &e ) :