diff options
Diffstat (limited to 'src/mongo/client/dbclient.cpp')
-rw-r--r-- | src/mongo/client/dbclient.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/client/dbclient.cpp b/src/mongo/client/dbclient.cpp index c682b1684b2..073c26f6d16 100644 --- a/src/mongo/client/dbclient.cpp +++ b/src/mongo/client/dbclient.cpp @@ -291,7 +291,7 @@ rpc::UniqueReply DBClientWithCommands::runCommandWithMetadata(StringData databas const BSONObj& commandArgs) { uassert(ErrorCodes::InvalidNamespace, str::stream() << "Database name '" << database << "' is not valid.", - NamespaceString::validDBName(database)); + NamespaceString::validDBName(database, NamespaceString::DollarInDbNameBehavior::Allow)); // call() oddly takes this by pointer, so we need to put it on the stack. auto host = getServerAddress(); |