summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/database.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/catalog/database.h')
-rw-r--r--src/mongo/db/catalog/database.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/db/catalog/database.h b/src/mongo/db/catalog/database.h
index 2fa20bc9358..53c3cb5712d 100644
--- a/src/mongo/db/catalog/database.h
+++ b/src/mongo/db/catalog/database.h
@@ -167,6 +167,15 @@ public:
StringData toNS,
bool stayTemp);
+ /**
+ * @return name of an existing database with same text name but different
+ * casing, if one exists. Otherwise the empty std::string is returned. If
+ * 'duplicates' is specified, it is filled with all duplicate names.
+ // TODO move???
+ */
+ static std::string duplicateUncasedName(const std::string& name,
+ std::set<std::string>* duplicates = 0);
+
static Status validateDBName(StringData dbname);
const std::string& getSystemIndexesName() const {