summaryrefslogtreecommitdiff
path: root/src/mongo/bson/mutable/document-inl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/bson/mutable/document-inl.h')
-rw-r--r--src/mongo/bson/mutable/document-inl.h4
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