summaryrefslogtreecommitdiff
path: root/src/mongo/db/service_entry_point_common.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/service_entry_point_common.cpp')
-rw-r--r--src/mongo/db/service_entry_point_common.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/service_entry_point_common.cpp b/src/mongo/db/service_entry_point_common.cpp
index abf81db6275..e60c89a3b65 100644
--- a/src/mongo/db/service_entry_point_common.cpp
+++ b/src/mongo/db/service_entry_point_common.cpp
@@ -99,6 +99,7 @@
#include "mongo/rpc/metadata/tracking_metadata.h"
#include "mongo/rpc/op_msg.h"
#include "mongo/rpc/reply_builder_interface.h"
+#include "mongo/rpc/warn_deprecated_wire_ops.h"
#include "mongo/s/shard_cannot_refresh_due_to_locks_held_exception.h"
#include "mongo/transport/hello_metrics.h"
#include "mongo/transport/service_executor.h"
@@ -1958,6 +1959,7 @@ DbResponse receivedQuery(OperationContext* opCtx,
DbResponse dbResponse;
try {
+ warnDeprecation(c, networkOpToString(m.operation()));
Client* client = opCtx->getClient();
Status status = auth::checkAuthForFind(AuthorizationSession::get(client), nss, false);
audit::logQueryAuthzCheck(client, nss, q.query, status.code());
@@ -2094,6 +2096,7 @@ DbResponse receivedGetMore(OperationContext* opCtx,
DbResponse dbresponse;
try {
+ warnDeprecation(*opCtx->getClient(), networkOpToString(m.operation()));
const NamespaceString nsString(ns);
uassert(ErrorCodes::InvalidNamespace,
str::stream() << "Invalid ns [" << ns << "]",
@@ -2280,6 +2283,7 @@ std::unique_ptr<HandleRequest::OpRunner> HandleRequest::makeOpRunner() {
DbResponse FireAndForgetOpRunner::runSync() {
try {
+ warnDeprecation(executionContext->client(), networkOpToString(executionContext->op()));
runAndForget();
} catch (const AssertionException& ue) {
LastError::get(executionContext->client()).setLastError(ue.code(), ue.reason());