diff options
Diffstat (limited to 'src/mongo/s/commands/cluster_kill_op.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_kill_op.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mongo/s/commands/cluster_kill_op.cpp b/src/mongo/s/commands/cluster_kill_op.cpp index 2ce1ecf79ef..1d4927b0f79 100644 --- a/src/mongo/s/commands/cluster_kill_op.cpp +++ b/src/mongo/s/commands/cluster_kill_op.cpp @@ -38,7 +38,6 @@ #include "mongo/bson/bsonobjbuilder.h" #include "mongo/bson/util/bson_extract.h" #include "mongo/client/connpool.h" -#include "mongo/db/api_parameters.h" #include "mongo/db/audit.h" #include "mongo/db/auth/authorization_session.h" #include "mongo/db/commands.h" @@ -112,10 +111,8 @@ private: result.append("shardid", opId); ScopedDbConnection conn(shard->getConnString()); - BSONObjBuilder bob(BSON("killOp" << 1 << "op" << opId)); - APIParameters::get(opCtx).appendInfo(&bob); // intentionally ignore return value - that is how legacy killOp worked. - conn->runCommand(OpMsgRequest::fromDBAndBody("admin", bob.obj())); + conn->runCommand(OpMsgRequest::fromDBAndBody("admin", BSON("killOp" << 1 << "op" << opId))); conn.done(); // The original behavior of killOp on mongos is to always return success, regardless of |