summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_list_local_sessions.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/pipeline/document_source_list_local_sessions.h')
-rw-r--r--src/mongo/db/pipeline/document_source_list_local_sessions.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/db/pipeline/document_source_list_local_sessions.h b/src/mongo/db/pipeline/document_source_list_local_sessions.h
index 787b537b515..cdabd1ae443 100644
--- a/src/mongo/db/pipeline/document_source_list_local_sessions.h
+++ b/src/mongo/db/pipeline/document_source_list_local_sessions.h
@@ -59,11 +59,12 @@ public:
public:
static std::unique_ptr<LiteParsed> parse(const AggregationRequest& request,
const BSONElement& spec) {
-
- return stdx::make_unique<LiteParsed>(listSessionsParseSpec(kStageName, spec));
+ return stdx::make_unique<LiteParsed>(spec.fieldName(),
+ listSessionsParseSpec(kStageName, spec));
}
- explicit LiteParsed(const ListSessionsSpec& spec) : _spec(spec) {}
+ explicit LiteParsed(std::string parseTimeName, const ListSessionsSpec& spec)
+ : LiteParsedDocumentSource(std::move(parseTimeName)), _spec(spec) {}
stdx::unordered_set<NamespaceString> getInvolvedNamespaces() const final {
return stdx::unordered_set<NamespaceString>();