summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_sort.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/pipeline/document_source_sort.h')
-rw-r--r--src/mongo/db/pipeline/document_source_sort.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/document_source_sort.h b/src/mongo/db/pipeline/document_source_sort.h
index cd669051e67..84213ce9fd2 100644
--- a/src/mongo/db/pipeline/document_source_sort.h
+++ b/src/mongo/db/pipeline/document_source_sort.h
@@ -55,6 +55,9 @@ public:
int memUsageForSorter() const {
return sizeof(SortableDate);
}
+ std::string toString() const {
+ return date.toString();
+ }
};
static constexpr StringData kStageName = "$sort"_sd;
@@ -213,6 +216,7 @@ private:
using TimeSorterInterface = BoundedSorterInterface<SortableDate, Document>;
std::unique_ptr<TimeSorterInterface> _timeSorter;
+ QueryMetadataBitSet _requiredMetadata;
};
} // namespace mongo