diff options
Diffstat (limited to 'src/mongo/db/commands/kill_op.cpp')
-rw-r--r-- | src/mongo/db/commands/kill_op.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/commands/kill_op.cpp b/src/mongo/db/commands/kill_op.cpp index fc00f0a1a08..633b10ef325 100644 --- a/src/mongo/db/commands/kill_op.cpp +++ b/src/mongo/db/commands/kill_op.cpp @@ -53,7 +53,7 @@ namespace mongo { class KillOpCommand : public KillOpCmdBase { public: bool run(OperationContext* opCtx, - const std::string& db, + const DatabaseName& dbName, const BSONObj& cmdObj, BSONObjBuilder& result) final { long long opId = KillOpCmdBase::parseOpId(cmdObj); @@ -62,7 +62,7 @@ public: result.append("info", "attempting to kill op"); LOGV2(20482, "Going to kill op: {opId}", "Going to kill op", "opId"_attr = opId); KillOpCmdBase::killLocalOperation(opCtx, opId); - reportSuccessfulCompletion(opCtx, db, cmdObj); + reportSuccessfulCompletion(opCtx, dbName, cmdObj); // killOp always reports success once past the auth check. return true; |