summaryrefslogtreecommitdiff
path: root/src/mongo/db/instance.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2016-03-29 14:44:39 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2016-03-29 17:16:15 -0400
commit2cc6e175738a5e18635c28f2bd68c1d6f679e0fc (patch)
tree438c196a69ae55322840d3528dd1e6b1dc370088 /src/mongo/db/instance.cpp
parente9638fa4456bbb4fd2492f84c6ec82e37dded8e2 (diff)
downloadmongo-2cc6e175738a5e18635c28f2bd68c1d6f679e0fc.tar.gz
SERVER-23405 Get rid of Command::getStatusFromCommand
Diffstat (limited to 'src/mongo/db/instance.cpp')
-rw-r--r--src/mongo/db/instance.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/instance.cpp b/src/mongo/db/instance.cpp
index 9238fd5a48a..3e837b801a9 100644
--- a/src/mongo/db/instance.cpp
+++ b/src/mongo/db/instance.cpp
@@ -91,6 +91,7 @@
#include "mongo/platform/process_id.h"
#include "mongo/rpc/command_reply_builder.h"
#include "mongo/rpc/command_request.h"
+#include "mongo/rpc/get_status_from_command_result.h"
#include "mongo/rpc/legacy_reply.h"
#include "mongo/rpc/legacy_reply_builder.h"
#include "mongo/rpc/legacy_request.h"
@@ -1142,7 +1143,7 @@ static void insertSystemIndexes(OperationContext* txn, DbMessage& d, CurOp& curO
Command::execCommand(txn, createIndexesCmd, cmdRequest, &cmdReplyBuilder);
auto cmdReplyMsg = cmdReplyBuilder.done();
rpc::LegacyReply cmdReply{&cmdReplyMsg};
- uassertStatusOK(Command::getStatusFromCommandResult(cmdReply.getCommandReply()));
+ uassertStatusOK(getStatusFromCommandResult(cmdReply.getCommandReply()));
} catch (const DBException& ex) {
LastError::get(txn->getClient()).setLastError(ex.getCode(), ex.getInfo().msg);
curOp.debug().exceptionInfo = ex.getInfo();