mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 00:56:44 +01:00
replace couple copy() calls with getOwned()
This commit is contained in:
parent
384864c5b9
commit
8730dc9d02
@ -150,7 +150,7 @@ namespace mongo {
|
||||
mayRecordPlan_( true ),
|
||||
usingPrerecordedPlan_( false ),
|
||||
hint_( emptyObj ),
|
||||
order_( order.copy() ),
|
||||
order_( order.getOwned() ),
|
||||
oldNScanned_( 0 ),
|
||||
honorRecordedPlan_( honorRecordedPlan ) {
|
||||
if ( hint && !hint->eoo() ) {
|
||||
|
@ -112,7 +112,7 @@ namespace mongo {
|
||||
|
||||
FieldBoundSet::FieldBoundSet( const char *ns, const BSONObj &query ) :
|
||||
ns_( ns ),
|
||||
query_( query.copy() ) {
|
||||
query_( query.getOwned() ) {
|
||||
BSONObjIterator i( query_ );
|
||||
while( i.more() ) {
|
||||
BSONElement e = i.next();
|
||||
|
Loading…
Reference in New Issue
Block a user