summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/record_data.h
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2014-08-19 15:07:11 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2014-08-20 17:43:20 -0400
commit2d5d662a834fab72ee1431e3bb0a5ed5a0826177 (patch)
tree5e2793249b87e4c99b08c6070820bb747d910a41 /src/mongo/db/storage/record_data.h
parent351523db3169a6c5e2df96f83eacea31978bea3d (diff)
downloadmongo-2d5d662a834fab72ee1431e3bb0a5ed5a0826177.tar.gz
SERVER-8994: Boost 1.56 build fixes
Diffstat (limited to 'src/mongo/db/storage/record_data.h')
-rw-r--r--src/mongo/db/storage/record_data.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/storage/record_data.h b/src/mongo/db/storage/record_data.h
index 89c40b09093..dc2f673c253 100644
--- a/src/mongo/db/storage/record_data.h
+++ b/src/mongo/db/storage/record_data.h
@@ -52,7 +52,7 @@ namespace mongo {
/**
* Returns true if this owns its own memory, and false otherwise
*/
- bool isOwned() const { return _dataPtr; }
+ bool isOwned() const { return _dataPtr.get(); }
// TODO eliminate double-copying
BSONObj toBson() const { return isOwned() ? BSONObj(_data).getOwned() : BSONObj(_data); }