summaryrefslogtreecommitdiff
path: root/src/mongo/client
diff options
context:
space:
mode:
authorMindaugas Malinauskas <mindaugas.malinauskas@mongodb.com>2020-07-01 15:12:52 +0300
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-07-08 13:14:41 +0000
commitc610e2627beeb3c8a6f95a2e7071a06e4ea1b1c0 (patch)
treeb82f27f2a285272cad90465268f3e33ff9e4bb6b /src/mongo/client
parentd4c7887dfae2d861cd4bb3118d576aee3c4f353f (diff)
downloadmongo-c610e2627beeb3c8a6f95a2e7071a06e4ea1b1c0.tar.gz
SERVER-46661 Use the IDL to parse a killCursors command
Diffstat (limited to 'src/mongo/client')
-rw-r--r--src/mongo/client/dbclient_base.cpp4
-rw-r--r--src/mongo/client/dbclient_connection.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/client/dbclient_base.cpp b/src/mongo/client/dbclient_base.cpp
index 87947613ad6..f3112fb7a59 100644
--- a/src/mongo/client/dbclient_base.cpp
+++ b/src/mongo/client/dbclient_base.cpp
@@ -51,7 +51,7 @@
#include "mongo/db/commands.h"
#include "mongo/db/json.h"
#include "mongo/db/namespace_string.h"
-#include "mongo/db/query/killcursors_request.h"
+#include "mongo/db/query/kill_cursors_gen.h"
#include "mongo/db/wire_version.h"
#include "mongo/executor/remote_command_request.h"
#include "mongo/executor/remote_command_response.h"
@@ -906,7 +906,7 @@ void DBClientBase::update(const string& ns,
void DBClientBase::killCursor(const NamespaceString& ns, long long cursorId) {
runFireAndForgetCommand(
- OpMsgRequest::fromDBAndBody(ns.db(), KillCursorsRequest(ns, {cursorId}).toBSON()));
+ OpMsgRequest::fromDBAndBody(ns.db(), KillCursorsRequest(ns, {cursorId}).toBSON(BSONObj{})));
}
namespace {
diff --git a/src/mongo/client/dbclient_connection.cpp b/src/mongo/client/dbclient_connection.cpp
index 297ae2b1c3f..8a3eeadc8f9 100644
--- a/src/mongo/client/dbclient_connection.cpp
+++ b/src/mongo/client/dbclient_connection.cpp
@@ -60,7 +60,7 @@
#include "mongo/db/commands/test_commands_enabled.h"
#include "mongo/db/json.h"
#include "mongo/db/namespace_string.h"
-#include "mongo/db/query/killcursors_request.h"
+#include "mongo/db/query/kill_cursors_gen.h"
#include "mongo/db/server_options.h"
#include "mongo/db/wire_version.h"
#include "mongo/executor/remote_command_request.h"