diff options
author | Eliot Horowitz <eliot@10gen.com> | 2012-05-16 18:01:22 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2012-05-16 18:22:20 -0400 |
commit | 4b381330a0e9c13c9fb84812476e288350c76830 (patch) | |
tree | 61aa65b14ec4bfc1d6207f76d2055f8b748cd5dd /src/mongo/db/ops/delete.cpp | |
parent | d3fd10a9ebc885bec5657a414f47f97c18231789 (diff) | |
download | mongo-4b381330a0e9c13c9fb84812476e288350c76830.tar.gz |
remove BSONObj::BSONObj( Record* ) in place of BSONObj::make( Record* r ) so we don't access data in constructor
Diffstat (limited to 'src/mongo/db/ops/delete.cpp')
-rw-r--r-- | src/mongo/db/ops/delete.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/ops/delete.cpp b/src/mongo/db/ops/delete.cpp index 2dce5d429bf..0c1bbfa689e 100644 --- a/src/mongo/db/ops/delete.cpp +++ b/src/mongo/db/ops/delete.cpp @@ -117,7 +117,7 @@ namespace mongo { if ( logop ) { BSONElement e; - if( BSONObj( rloc.rec() ).getObjectID( e ) ) { + if( BSONObj::make( rloc.rec() ).getObjectID( e ) ) { BSONObjBuilder b; b.append( e ); bool replJustOne = true; |