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:
parent
dbaa985014
commit
c606e65477
@ -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 ) :
|
||||
|
Loading…
Reference in New Issue
Block a user