diff options
author | Rishab Joshi <rishab.joshi@mongodb.com> | 2021-09-09 13:15:11 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-09-09 13:40:12 +0000 |
commit | 5bf626888365254c28d29da5dd64281f2b23c417 (patch) | |
tree | cb4f1138970bfb233480bab617c91f7f2187f5f0 /src/mongo/db/pipeline/document_source_change_stream.h | |
parent | 6ece75f2fd3e23d493ff72e63e9601b46b261659 (diff) | |
download | mongo-5bf626888365254c28d29da5dd64281f2b23c417.tar.gz |
SERVER-55541 Add "ns" to fields eligible for $match optimization in change streams pipelines.
Diffstat (limited to 'src/mongo/db/pipeline/document_source_change_stream.h')
-rw-r--r-- | src/mongo/db/pipeline/document_source_change_stream.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/document_source_change_stream.h b/src/mongo/db/pipeline/document_source_change_stream.h index 5cf43b37988..3bd12f97a89 100644 --- a/src/mongo/db/pipeline/document_source_change_stream.h +++ b/src/mongo/db/pipeline/document_source_change_stream.h @@ -184,6 +184,8 @@ public: static std::string getCollRegexForChangeStream(const NamespaceString& nss); static std::string getCmdNsRegexForChangeStream(const NamespaceString& nss); + static std::string regexEscapeNsForChangeStream(StringData source); + /** * Parses a $changeStream stage from 'elem' and produces the $match and transformation * stages required. |