diff options
| author | Mickey. J Winters <mickey.winters@mongodb.com> | 2023-11-13 20:02:43 +0000 |
|---|---|---|
| committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-11-13 20:28:17 +0000 |
| commit | 3367195a14d0ba2734d2ba2719294fb974ad0834 (patch) | |
| tree | 3c136b864ac953ecf486fbe0e748e84e8a86655c /src/mongo/db/exec/document_value/document.cpp | |
| parent | 2c0bf6dafaa926d16f095f0ff91bedaa7f5b0863 (diff) | |
SERVER-83150 make Document::shred() copy document metadatar5.0.23-rc0r5.0.23
Diffstat (limited to 'src/mongo/db/exec/document_value/document.cpp')
| -rw-r--r-- | src/mongo/db/exec/document_value/document.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/exec/document_value/document.cpp b/src/mongo/db/exec/document_value/document.cpp index e905dec2e70..80a6cfa5fd8 100644 --- a/src/mongo/db/exec/document_value/document.cpp +++ b/src/mongo/db/exec/document_value/document.cpp @@ -377,6 +377,7 @@ Document DocumentStorage::shred() const { md[it.fieldName()] = valueElem.val.shred(); } } + md.setMetadata(DocumentMetadataFields(metadata())); return md.freeze(); } |
