summaryrefslogtreecommitdiff
path: root/src/mongo/db/namespace_string.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/namespace_string.cpp')
-rw-r--r--src/mongo/db/namespace_string.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/namespace_string.cpp b/src/mongo/db/namespace_string.cpp
index aeff8ff37e6..3e362b868d8 100644
--- a/src/mongo/db/namespace_string.cpp
+++ b/src/mongo/db/namespace_string.cpp
@@ -222,6 +222,9 @@ bool NamespaceString::isNamespaceAlwaysUnsharded() const {
if (isSystemDotProfile())
return true;
+ if (isSystemDotViews())
+ return true;
+
if (ns() == "config.cache.databases" || ns() == "config.cache.collections" ||
(db() == "config" && coll().startsWith("cache.chunks")))
return true;