diff options
author | Andrew Morrow <acm@10gen.com> | 2013-07-07 15:16:25 -0400 |
---|---|---|
committer | Andrew Morrow <acm@10gen.com> | 2013-07-08 09:51:36 -0400 |
commit | a493a1a94fc159c175d144fab7a77e20bdf9e467 (patch) | |
tree | 2fe7d0daa962901480d7bb0a8450631a9dd9ee5c /src/mongo/bson/mutable/document-inl.h | |
parent | 7eef25c3aa99144f039132d869628391a82b9339 (diff) | |
download | mongo-a493a1a94fc159c175d144fab7a77e20bdf9e467.tar.gz |
SERVER-8046 Add support for in-place updates to mutable
Diffstat (limited to 'src/mongo/bson/mutable/document-inl.h')
-rw-r--r-- | src/mongo/bson/mutable/document-inl.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/bson/mutable/document-inl.h b/src/mongo/bson/mutable/document-inl.h index 5d6de21554f..44cbccd13ec 100644 --- a/src/mongo/bson/mutable/document-inl.h +++ b/src/mongo/bson/mutable/document-inl.h @@ -51,5 +51,9 @@ namespace mutablebson { return getObject().toString(); } + inline bool Document::isInPlaceModeEnabled() const { + return getCurrentInPlaceMode() == kInPlaceEnabled; + } + } // namespace mutablebson } // namespace mongo |