diff options
Diffstat (limited to 'src/mongo/client/dbclient_base.cpp')
-rw-r--r-- | src/mongo/client/dbclient_base.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/client/dbclient_base.cpp b/src/mongo/client/dbclient_base.cpp index d0ef3e0ea12..5332e631759 100644 --- a/src/mongo/client/dbclient_base.cpp +++ b/src/mongo/client/dbclient_base.cpp @@ -168,7 +168,7 @@ rpc::UniqueReply DBClientBase::parseCommandReplyMessage(const std::string& host, if (_metadataReader) { auto opCtx = haveClient() ? cc().getOperationContext() : nullptr; - uassertStatusOK(_metadataReader(opCtx, commandReply->getMetadata(), host)); + uassertStatusOK(_metadataReader(opCtx, commandReply->getCommandReply(), host)); } auto status = getStatusFromCommandResult(commandReply->getCommandReply()); @@ -470,11 +470,10 @@ void DBClientBase::_auth(const BSONObj& params) { OpMsgRequest::fromDBAndBody(request.dbname, request.cmdObj, request.metadata)); BSONObj data = reply->getCommandReply().getOwned(); - BSONObj metadata = reply->getMetadata().getOwned(); Milliseconds millis(Date_t::now() - start); // Hand control back to authenticateClient() - handler({data, metadata, millis}); + handler({data, millis}); } catch (...) { handler(exceptionToStatus()); |