diff options
author | Alberto Massari <alberto.massari@mongodb.com> | 2022-09-29 12:23:22 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-09-29 13:28:17 +0000 |
commit | 19515cea589979e7243ccf101a375a3c63881a27 (patch) | |
tree | e512978d6e7782c3ed2938e7975588f46a09be27 /src/mongo/db/exec/document_value | |
parent | 610dbc3b0bea69b9622429e4d5e550b95d2f8ffe (diff) | |
download | mongo-19515cea589979e7243ccf101a375a3c63881a27.tar.gz |
SERVER-66511 Improve performances of sort+limit stages in SBE
Diffstat (limited to 'src/mongo/db/exec/document_value')
-rw-r--r-- | src/mongo/db/exec/document_value/document.h | 7 | ||||
-rw-r--r-- | src/mongo/db/exec/document_value/value.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/exec/document_value/document.h b/src/mongo/db/exec/document_value/document.h index 641a89f099e..b3990b7e0ae 100644 --- a/src/mongo/db/exec/document_value/document.h +++ b/src/mongo/db/exec/document_value/document.h @@ -336,6 +336,13 @@ public: Document getOwned() &&; /** + * Needed to satisfy the Sorter interface. This method throws an assertion. + */ + void makeOwned() { + MONGO_UNREACHABLE; + } + + /** * Returns true if the underlying BSONObj is owned. */ bool isOwned() const { diff --git a/src/mongo/db/exec/document_value/value.h b/src/mongo/db/exec/document_value/value.h index bf54221326c..7da4b971c34 100644 --- a/src/mongo/db/exec/document_value/value.h +++ b/src/mongo/db/exec/document_value/value.h @@ -388,6 +388,7 @@ public: Value getOwned() const { return *this; } + void makeOwned() {} /// Members to support parsing/deserialization from IDL generated code. void serializeForIDL(StringData fieldName, BSONObjBuilder* builder) const; |