diff options
Diffstat (limited to 'src/mongo/db/commands/get_last_error.cpp')
-rw-r--r-- | src/mongo/db/commands/get_last_error.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/commands/get_last_error.cpp b/src/mongo/db/commands/get_last_error.cpp index 770218f1faf..063ebd12636 100644 --- a/src/mongo/db/commands/get_last_error.cpp +++ b/src/mongo/db/commands/get_last_error.cpp @@ -32,7 +32,7 @@ #include "mongo/db/client.h" #include "mongo/db/commands.h" -#include "mongo/rpc/warn_unsupported_wire_ops.h" +#include "mongo/rpc/check_allowed_op_query_cmd.h" #define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kCommand @@ -66,7 +66,6 @@ public: const BSONObj&, std::string&, BSONObjBuilder&) { - warnUnsupportedOp(*opCtx->getClient(), "getLastError"); uasserted(5739000, "getLastError command is not supported"); return false; } |