summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_change_stream_oplog_match.h
diff options
context:
space:
mode:
authorRishab Joshi <rishab.joshi@mongodb.com>2021-05-18 09:19:36 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-05-20 11:54:09 +0000
commitac173f107cf2642007bbae401eac5fa62106eda7 (patch)
treeed0794aaa46b4ecfffbcbdfd423e390996d5ff0c /src/mongo/db/pipeline/document_source_change_stream_oplog_match.h
parent6997403b9fab1e397e1e13bbdf6e899aeee8b6fd (diff)
downloadmongo-ac173f107cf2642007bbae401eac5fa62106eda7.tar.gz
SERVER-55424: Rename change streams DocumentSources to include 'DocumentSourceChangeStream' prefix.
Diffstat (limited to 'src/mongo/db/pipeline/document_source_change_stream_oplog_match.h')
-rw-r--r--src/mongo/db/pipeline/document_source_change_stream_oplog_match.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/mongo/db/pipeline/document_source_change_stream_oplog_match.h b/src/mongo/db/pipeline/document_source_change_stream_oplog_match.h
index 55641a8429b..06d6602ca49 100644
--- a/src/mongo/db/pipeline/document_source_change_stream_oplog_match.h
+++ b/src/mongo/db/pipeline/document_source_change_stream_oplog_match.h
@@ -36,18 +36,20 @@ namespace mongo {
* A custom subclass of DocumentSourceMatch which is used to generate a $match stage to be applied
* on the oplog. The stage requires itself to be the first stage in the pipeline.
*/
-class DocumentSourceOplogMatch final : public DocumentSourceMatch,
- public ChangeStreamStageSerializationInterface {
+class DocumentSourceChangeStreamOplogMatch final : public DocumentSourceMatch,
+ public ChangeStreamStageSerializationInterface {
public:
static constexpr StringData kStageName = "$_internalChangeStreamOplogMatch"_sd;
- DocumentSourceOplogMatch(BSONObj filter, const boost::intrusive_ptr<ExpressionContext>& expCtx)
+ DocumentSourceChangeStreamOplogMatch(BSONObj filter,
+ const boost::intrusive_ptr<ExpressionContext>& expCtx)
: DocumentSourceMatch(std::move(filter), expCtx) {
// A change stream pipeline should always create a tailable + awaitData cursor.
expCtx->tailableMode = TailableModeEnum::kTailableAndAwaitData;
}
- DocumentSourceOplogMatch(const DocumentSourceOplogMatch& other) : DocumentSourceMatch(other) {}
+ DocumentSourceChangeStreamOplogMatch(const DocumentSourceChangeStreamOplogMatch& other)
+ : DocumentSourceMatch(other) {}
virtual boost::intrusive_ptr<DocumentSourceMatch> clone() const {
return make_intrusive<std::decay_t<decltype(*this)>>(*this);
@@ -55,7 +57,7 @@ public:
static boost::intrusive_ptr<DocumentSource> createFromBson(
BSONElement elem, const boost::intrusive_ptr<ExpressionContext>& pExpCtx);
- static boost::intrusive_ptr<DocumentSourceOplogMatch> create(
+ static boost::intrusive_ptr<DocumentSourceChangeStreamOplogMatch> create(
const boost::intrusive_ptr<ExpressionContext>& expCtx, bool showMigrationEvents);
const char* getSourceName() const final;