summaryrefslogtreecommitdiff
path: root/src/mongo/db/namespace_string.h
diff options
context:
space:
mode:
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 a8fac0a2a58..3e5a0d07793 100644
--- a/src/mongo/db/namespace_string.h
+++ b/src/mongo/db/namespace_string.h
@@ -212,6 +212,9 @@ public:
bool isSystem() const {
return coll().startsWith("system.");
}
+ bool isAdminDB() const {
+ return db() == kAdminDb;
+ }
bool isLocal() const {
return db() == kLocalDb;
}