diff options
| author | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2025-02-18 17:02:53 -0300 |
|---|---|---|
| committer | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2025-02-18 17:02:53 -0300 |
| commit | 959575a5ca598bf5f37fb5cebe7ed1d80d3d71f7 (patch) | |
| tree | acc8d60aedb12b70048e676e8a7349deb0010db8 /src/mongo/db/exec/document_value/document_internal.h | |
| parent | 76588293975fc059cf076779e4283e6ffaf8afff (diff) | |
New upstream version 6.0.20upstream
Diffstat (limited to 'src/mongo/db/exec/document_value/document_internal.h')
| -rw-r--r-- | src/mongo/db/exec/document_value/document_internal.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mongo/db/exec/document_value/document_internal.h b/src/mongo/db/exec/document_value/document_internal.h index d7fb3b337d6..372130c3e68 100644 --- a/src/mongo/db/exec/document_value/document_internal.h +++ b/src/mongo/db/exec/document_value/document_internal.h @@ -296,8 +296,8 @@ public: return _sd.size(); } - inline void copyTo(char* dest, bool includeEndingNull) const { - return _sd.copyTo(dest, includeEndingNull); + inline size_t copy(char* dest, size_t len) const { + return _sd.copy(dest, len); } constexpr const char* rawData() const noexcept { @@ -385,6 +385,11 @@ public: */ Document shred() const; + /** + * Loads the whole document into cache. + */ + void loadIntoCache() const; + static const DocumentStorage& emptyDoc() { return kEmptyDoc; } |
