diff options
author | mathisbessamdb <mathis.bessa@mongodb.com> | 2023-04-24 22:59:20 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-04-26 22:00:17 +0000 |
commit | 18659bb538d2ba53d5c93ac5a9df834c7cb7fe41 (patch) | |
tree | 25ab82a3e0c32f9710df132a45f36bf5d4f38ee6 /src/mongo/scripting/mozjs/mongo.cpp | |
parent | 54c93d835e07dad55dd38f89928e3206a61a1234 (diff) | |
download | mongo-18659bb538d2ba53d5c93ac5a9df834c7cb7fe41.tar.gz |
SERVER-74493 Make DatabaseName constructors private
Diffstat (limited to 'src/mongo/scripting/mozjs/mongo.cpp')
-rw-r--r-- | src/mongo/scripting/mozjs/mongo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/scripting/mozjs/mongo.cpp b/src/mongo/scripting/mozjs/mongo.cpp index 8ebcf06e796..901e08390b7 100644 --- a/src/mongo/scripting/mozjs/mongo.cpp +++ b/src/mongo/scripting/mozjs/mongo.cpp @@ -320,7 +320,8 @@ void MongoBase::Functions::_runCommandImpl::call(JSContext* cx, JS::CallArgs arg str::stream() << "The options parameter to runCommand must be a number", args.get(2).isNumber()); auto options = ValueWriter(cx, args.get(2)).toInt32(); - return rpc::upconvertRequest({boost::none, database}, cmd, options); + return rpc::upconvertRequest( + DatabaseName::createDatabaseName_forTest(boost::none, database), cmd, options); }); } |