summaryrefslogtreecommitdiff
path: root/src/mongo/db/namespace_string.cpp
diff options
context:
space:
mode:
authorCheahuychou Mao <cheahuychou.mao@mongodb.com>2020-04-29 09:54:40 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-05-08 18:21:40 +0000
commita3316c51e513e941d0765f9e4383c9e79ebb78a5 (patch)
tree650e875a2b007e40d162b57f412595e02eb1757d /src/mongo/db/namespace_string.cpp
parent09b1be8b2f4c69c5d942ceb2736c449cefabcb65 (diff)
downloadmongo-a3316c51e513e941d0765f9e4383c9e79ebb78a5.tar.gz
SERVER-47531 OpObserver: Convert usage of getCollectionDescription_DEPRECATED to getCollectionDescription
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;