diff options
author | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2020-05-27 15:29:50 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-05-27 20:01:05 +0000 |
commit | 21ef00aa502d7b74e19bc3b6b76f285c9860da3e (patch) | |
tree | d7abd0293a766e4a71bb65075c2de3257336d6d4 /src/mongo/db/namespace_string.h | |
parent | e0ef190e139c73fb03a53f4a854ba6c6dca169fa (diff) | |
download | mongo-21ef00aa502d7b74e19bc3b6b76f285c9860da3e.tar.gz |
SERVER-47154 Split out namespace pattern matching logic from _checkCanCreateCollection() into userAllowedCreateNS()
Diffstat (limited to 'src/mongo/db/namespace_string.h')
-rw-r--r-- | src/mongo/db/namespace_string.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/namespace_string.h b/src/mongo/db/namespace_string.h index 4d203db766e..c019e8362d6 100644 --- a/src/mongo/db/namespace_string.h +++ b/src/mongo/db/namespace_string.h @@ -317,8 +317,8 @@ public: * Returns true if the namespace is valid. Special namespaces for internal use are considered as * valid. */ - bool isValid() const { - return validDBName(db(), DollarInDbNameBehavior::Allow) && !coll().empty(); + bool isValid(DollarInDbNameBehavior behavior = DollarInDbNameBehavior::Allow) const { + return validDBName(db(), behavior) && !coll().empty(); } /** |