summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/get_last_error.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/get_last_error.cpp')
-rw-r--r--src/mongo/db/commands/get_last_error.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/commands/get_last_error.cpp b/src/mongo/db/commands/get_last_error.cpp
index f2b97a08efd..7cc13764c65 100644
--- a/src/mongo/db/commands/get_last_error.cpp
+++ b/src/mongo/db/commands/get_last_error.cpp
@@ -42,6 +42,7 @@
#include "mongo/db/write_concern.h"
#include "mongo/idl/command_generic_argument.h"
#include "mongo/logv2/log.h"
+#include "mongo/rpc/warn_deprecated_wire_ops.h"
namespace mongo {
namespace {
@@ -119,6 +120,8 @@ public:
}
}
+ warnDeprecation(c, "getLastError");
+
// for sharding; also useful in general for debugging
result.appendNumber("connectionId", c.getConnectionId());