From 0e9371dbed499f6f2ab5066fffdc746747351c6d Mon Sep 17 00:00:00 2001 From: Charlie Swanson Date: Wed, 24 Jun 2015 10:03:42 -0400 Subject: SERVER-19105 Define macro for registering DocumentSources --- src/mongo/db/pipeline/document_source_match.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mongo/db/pipeline/document_source_match.cpp') diff --git a/src/mongo/db/pipeline/document_source_match.cpp b/src/mongo/db/pipeline/document_source_match.cpp index 50ef5e95eb5..5000a1c7542 100644 --- a/src/mongo/db/pipeline/document_source_match.cpp +++ b/src/mongo/db/pipeline/document_source_match.cpp @@ -43,10 +43,10 @@ using boost::intrusive_ptr; using std::string; using std::vector; -const char DocumentSourceMatch::matchName[] = "$match"; +REGISTER_DOCUMENT_SOURCE(match, DocumentSourceMatch::createFromBson); const char* DocumentSourceMatch::getSourceName() const { - return matchName; + return "$match"; } Value DocumentSourceMatch::serialize(bool explain) const { -- cgit v1.2.1