diff options
Diffstat (limited to 'src/mongo/db/namespace_string.cpp')
-rw-r--r-- | src/mongo/db/namespace_string.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/db/namespace_string.cpp b/src/mongo/db/namespace_string.cpp index 5b53b509c5f..43f02e26bb5 100644 --- a/src/mongo/db/namespace_string.cpp +++ b/src/mongo/db/namespace_string.cpp @@ -74,7 +74,7 @@ constexpr auto listIndexesCursorNSPrefix = "$cmd.listIndexes."_sd; } // namespace -bool legalClientSystemNS(StringData ns, bool write) { +bool legalClientSystemNS(StringData ns) { if (ns == "local.system.replset") return true; @@ -93,6 +93,9 @@ bool legalClientSystemNS(StringData ns, bool write) { if (ns.find(".system.js") != string::npos) return true; + if (nsToCollectionSubstring(ns) == "system.views") + return true; + return false; } |