summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_change_stream.h
diff options
context:
space:
mode:
authorBernard Gorman <bernard.gorman@gmail.com>2022-05-27 14:47:58 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-05-27 15:29:59 +0000
commit2cbe2539dc4ae363686409c7ec8b67fa36eddc29 (patch)
treeceace3a266b102d2c3e113ba4f8659eb8cd96938 /src/mongo/db/pipeline/document_source_change_stream.h
parent48c6f489560a56aad037d43878350f30b9e4a00a (diff)
downloadmongo-2cbe2539dc4ae363686409c7ec8b67fa36eddc29.tar.gz
SERVER-63437 Expose all events on 'system.resharding' collections when 'showSystemEvents' is true
Co-authored-by: Arun Banala <arun.banala@mongodb.com>
Diffstat (limited to 'src/mongo/db/pipeline/document_source_change_stream.h')
-rw-r--r--src/mongo/db/pipeline/document_source_change_stream.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/document_source_change_stream.h b/src/mongo/db/pipeline/document_source_change_stream.h
index 1ecdde1d5b6..cb720da2515 100644
--- a/src/mongo/db/pipeline/document_source_change_stream.h
+++ b/src/mongo/db/pipeline/document_source_change_stream.h
@@ -246,9 +246,10 @@ public:
// Default regex for collections match which prohibits system collections.
static constexpr StringData kRegexAllCollections = R"((?!(\$|system\.)))"_sd;
- // Regex matching all regular collections plus certain system collections.
+
+ // Regex matching all user collections plus collections exposed when 'showSystemEvents' is set.
static constexpr StringData kRegexAllCollectionsShowSystemEvents =
- R"((?!(\$|system\.(?!(js$)))))"_sd;
+ R"((?!(\$|system\.(?!(js$|resharding\.)))))"_sd;
static constexpr StringData kRegexAllDBs = R"(^(?!(admin|config|local)\.)[^.]+)"_sd;
static constexpr StringData kRegexCmdColl = R"(\$cmd$)"_sd;