summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_kill_op.cpp
diff options
context:
space:
mode:
authorA. Jesse Jiryu Davis <jesse@mongodb.com>2020-10-02 15:30:58 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-10-02 21:12:14 +0000
commit01cac19578f0d65bdb8784892f078f7a004efa57 (patch)
tree1453a4a2e322a69076bd9f1adeca15ef6a9e1a17 /src/mongo/s/commands/cluster_kill_op.cpp
parent84494ea46f70d64e181042ed75a0118143b16881 (diff)
downloadmongo-01cac19578f0d65bdb8784892f078f7a004efa57.tar.gz
Revert "SERVER-50375 Ensure mongos forwards API parameters to shards"
This reverts commit 9b8d4c2f029e2384fa769014c00091e4de362ea4.
Diffstat (limited to 'src/mongo/s/commands/cluster_kill_op.cpp')
-rw-r--r--src/mongo/s/commands/cluster_kill_op.cpp5
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