diff options
Diffstat (limited to 'src/mongo/db/namespace_string.cpp')
-rw-r--r-- | src/mongo/db/namespace_string.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/db/namespace_string.cpp b/src/mongo/db/namespace_string.cpp index f2b8f148779..6928d8da953 100644 --- a/src/mongo/db/namespace_string.cpp +++ b/src/mongo/db/namespace_string.cpp @@ -231,12 +231,16 @@ bool NamespaceString::isNamespaceAlwaysUnsharded() const { return true; if (ns() == "config.cache.databases" || ns() == "config.cache.collections" || - (db() == "config" && coll().startsWith("cache.chunks"))) + isConfigDotCacheDotChunks()) return true; return false; } +bool NamespaceString::isConfigDotCacheDotChunks() const { + return db() == "config" && coll().startsWith("cache.chunks."); +} + bool NamespaceString::isReplicated() const { if (isLocal()) { return false; |