diff options
author | Xiangyu Yao <xiangyu.yao@mongodb.com> | 2017-11-12 00:00:52 -0500 |
---|---|---|
committer | Xiangyu Yao <xiangyu.yao@mongodb.com> | 2017-11-22 11:37:25 -0500 |
commit | 9ab80a38613917a9d4c66331c923e09f3151445a (patch) | |
tree | 6deb6bf8ac89d5a5bfe76d7acc9e374562f85f7a /src/mongo/db/namespace_string.h | |
parent | 969ddd3d921cd8e6c5ab3068fdb77cb2dc271ed5 (diff) | |
download | mongo-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.h | 3 |
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"; } |