Skip to content

Commit

Permalink
first cut at named traces (unused); copy ctor and assignment op for B…
Browse files Browse the repository at this point in the history
…SONObj
  • Loading branch information
U-tellus\cwestin committed Feb 15, 2012
1 parent 57ea070 commit 59e9b72
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/mongo/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ commonFiles = [ "pch.cpp",
"util/intrusive_counter.cpp",
"util/util.cpp",
"util/file_allocator.cpp",
"util/assert_util.cpp",
"util/assert_util.cpp",
"util/trace.cpp",
"util/log.cpp",
"util/ramlog.cpp",
"util/md5main.cpp",
Expand Down
12 changes: 12 additions & 0 deletions src/mongo/bson/bsonobj.h
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,18 @@ namespace mongo {
};
#pragma pack()

BSONObj(const BSONObj &rO):
_objdata(rO._objdata), _holder(rO._holder) {
}

BSONObj &operator=(const BSONObj &rRHS) {
if (this != &rRHS) {
_objdata = rRHS._objdata;
_holder = rRHS._holder;
}
return *this;
}

private:
const char *_objdata;
boost::intrusive_ptr< Holder > _holder;
Expand Down
2 changes: 1 addition & 1 deletion src/mongo/db/pipeline/dependency_tracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ namespace mongo {

}

/* ======================= INLINED IMPLEMENTATIONS ========================== */
/* ======================= PRIVATE IMPLEMENTATIONS ========================== */

namespace mongo {

Expand Down

0 comments on commit 59e9b72

Please sign in to comment.