diff options
author | David Storch <david.storch@10gen.com> | 2016-10-03 11:17:13 -0400 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2016-10-03 16:13:51 -0400 |
commit | 8758a5c7be68effbc4a1f857787bfb7b201c6389 (patch) | |
tree | 4880b453167dcada211c278dbc34ff095e31d81c /src/mongo/db/pipeline/document_source_index_stats.cpp | |
parent | b8a5742ef7623640eb6977f14e25649bad661208 (diff) | |
download | mongo-8758a5c7be68effbc4a1f857787bfb7b201c6389.tar.gz |
SERVER-25038 add LiteParsedPipeline
This provides a way to do pre-parse validity checks. Full
parsing of the Pipeline must be done under the collection
lock, when the collation is known.
Diffstat (limited to 'src/mongo/db/pipeline/document_source_index_stats.cpp')
-rw-r--r-- | src/mongo/db/pipeline/document_source_index_stats.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/document_source_index_stats.cpp b/src/mongo/db/pipeline/document_source_index_stats.cpp index b3b003bb89f..b6feff69eb7 100644 --- a/src/mongo/db/pipeline/document_source_index_stats.cpp +++ b/src/mongo/db/pipeline/document_source_index_stats.cpp @@ -30,11 +30,15 @@ #include "mongo/db/pipeline/document_source.h" +#include "mongo/db/pipeline/lite_parsed_document_source.h" + namespace mongo { using boost::intrusive_ptr; -REGISTER_DOCUMENT_SOURCE(indexStats, DocumentSourceIndexStats::createFromBson); +REGISTER_DOCUMENT_SOURCE(indexStats, + LiteParsedDocumentSourceDefault::parse, + DocumentSourceIndexStats::createFromBson); const char* DocumentSourceIndexStats::getSourceName() const { return "$indexStats"; |