From 6d0a0e46b987dbc69a5694ff03d53d7e7e25b065 Mon Sep 17 00:00:00 2001 From: David Storch Date: Tue, 1 Oct 2019 19:36:43 +0000 Subject: SERVER-42182 Reimplement SortStage in terms of SortExecutor. This consolidates the implementations of DocumentSourceSort and SortStage to both use the same underlying sort execution code. It also allows a future change to expose external sort for find command (which currently requires 'enableTestCommands=true'). --- src/mongo/db/storage/key_string.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mongo/db/storage') diff --git a/src/mongo/db/storage/key_string.h b/src/mongo/db/storage/key_string.h index d4e0aebb24b..dc739804204 100644 --- a/src/mongo/db/storage/key_string.h +++ b/src/mongo/db/storage/key_string.h @@ -390,6 +390,10 @@ public: // Use buffer capacity as a more accurate measure of memory usage. return sizeof(Value) + _buffer.capacity(); } + + Value getOwned() const { + return *this; + } /// Members for Sorter private: -- cgit v1.2.1