summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/role_name_or_string.h
diff options
context:
space:
mode:
authorSara Golemon <sara.golemon@mongodb.com>2022-06-16 14:15:24 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-07-07 16:06:08 +0000
commit51e8972dca292dbc6f80d13252b8555c8ce633c9 (patch)
tree9c48e9a142ba48faf17dc0fd9e8ddd8e444a0b69 /src/mongo/db/auth/role_name_or_string.h
parenta7ce4c0c9b3abf5bc27675a4b5edde401371a2fd (diff)
downloadmongo-51e8972dca292dbc6f80d13252b8555c8ce633c9.tar.gz
SERVER-66586 Add multitenancy support to UMC commands
Diffstat (limited to 'src/mongo/db/auth/role_name_or_string.h')
-rw-r--r--src/mongo/db/auth/role_name_or_string.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/auth/role_name_or_string.h b/src/mongo/db/auth/role_name_or_string.h
index d75e1f332a9..ccc933cce0c 100644
--- a/src/mongo/db/auth/role_name_or_string.h
+++ b/src/mongo/db/auth/role_name_or_string.h
@@ -37,6 +37,7 @@
#include "mongo/base/string_data.h"
#include "mongo/bson/bsonelement.h"
#include "mongo/bson/bsonobjbuilder.h"
+#include "mongo/db/database_name.h"
namespace mongo {
@@ -66,7 +67,7 @@ public:
* Returns the fully qualified RoleName if present,
* or constructs a RoleName using the parsed role and provided dbname.
*/
- RoleName getRoleName(StringData dbname) const;
+ RoleName getRoleName(const DatabaseName& dbname) const;
private:
std::variant<RoleName, std::string> _roleName;