summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage
diff options
context:
space:
mode:
authorDavid Storch <david.storch@mongodb.com>2019-10-01 19:36:43 +0000
committerevergreen <evergreen@mongodb.com>2019-10-01 19:36:43 +0000
commit6d0a0e46b987dbc69a5694ff03d53d7e7e25b065 (patch)
tree65100de1652fcfebdc2569d8910972d2ae891fa4 /src/mongo/db/storage
parent0187f0fed3630b3f519daeb7290f40a92b700691 (diff)
downloadmongo-6d0a0e46b987dbc69a5694ff03d53d7e7e25b065.tar.gz
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').
Diffstat (limited to 'src/mongo/db/storage')
-rw-r--r--src/mongo/db/storage/key_string.h4
1 files changed, 4 insertions, 0 deletions
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: