summaryrefslogtreecommitdiff
path: root/src/mongo/db/namespace_string.h
diff options
context:
space:
mode:
authorXiangyu Yao <xiangyu.yao@mongodb.com>2017-11-12 00:00:52 -0500
committerXiangyu Yao <xiangyu.yao@mongodb.com>2017-11-22 11:37:25 -0500
commit9ab80a38613917a9d4c66331c923e09f3151445a (patch)
tree6deb6bf8ac89d5a5bfe76d7acc9e374562f85f7a /src/mongo/db/namespace_string.h
parent969ddd3d921cd8e6c5ab3068fdb77cb2dc271ed5 (diff)
downloadmongo-9ab80a38613917a9d4c66331c923e09f3151445a.tar.gz
SERVER-29453 Disallow removing featureCompatibilityVersion document and renaming collection
Diffstat (limited to 'src/mongo/db/namespace_string.h')
-rw-r--r--src/mongo/db/namespace_string.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/namespace_string.h b/src/mongo/db/namespace_string.h
index f110489916e..07240fa9f0a 100644
--- a/src/mongo/db/namespace_string.h
+++ b/src/mongo/db/namespace_string.h
@@ -192,6 +192,9 @@ public:
bool isSystemDotViews() const {
return coll() == kSystemDotViewsCollectionName;
}
+ bool isAdminDotSystemDotVersion() const {
+ return ((db() == "admin") && (coll() == "system.version"));
+ }
bool isConfigDB() const {
return db() == "config";
}