0
0
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:
Aaron 2009-03-06 13:42:52 -05:00
parent 384864c5b9
commit 8730dc9d02
2 changed files with 2 additions and 2 deletions

View File

@ -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() ) {

View File

@ -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();