summaryrefslogtreecommitdiff
path: root/src/mongo/db/service_entry_point_mongod.cpp
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2018-04-24 12:14:18 -0400
committerBilly Donahue <billy.donahue@mongodb.com>2018-04-24 16:34:41 -0400
commit76bc4f800ba2a103d67fa4600d3946f255927818 (patch)
tree41753625aad1bcca379adb81bf6e58f4d3268fb8 /src/mongo/db/service_entry_point_mongod.cpp
parentc963ca0e1c6ef2f6fe4910e0e149cc2b2cbe602a (diff)
downloadmongo-76bc4f800ba2a103d67fa4600d3946f255927818.tar.gz
SERVER-28871 remove obsolete Command::isUserManagementCommand
Diffstat (limited to 'src/mongo/db/service_entry_point_mongod.cpp')
-rw-r--r--src/mongo/db/service_entry_point_mongod.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/mongo/db/service_entry_point_mongod.cpp b/src/mongo/db/service_entry_point_mongod.cpp
index 59267d2ad18..26cbd30d235 100644
--- a/src/mongo/db/service_entry_point_mongod.cpp
+++ b/src/mongo/db/service_entry_point_mongod.cpp
@@ -88,15 +88,6 @@ public:
mongo::waitForWriteConcern(opCtx, lastOpAfterRun, opCtx->getWriteConcern(), &res);
CommandHelpers::appendCommandWCStatus(commandResponseBuilder, waitForWCStatus, res);
-
- // SERVER-22421: This code is to ensure error response backwards compatibility with the
- // user management commands. This can be removed in 3.6.
- if (!waitForWCStatus.isOK() && invocation->definition()->isUserManagementCommand()) {
- BSONObj temp = commandResponseBuilder.asTempObj().copy();
- commandResponseBuilder.resetToEmpty();
- CommandHelpers::appendCommandStatus(commandResponseBuilder, waitForWCStatus);
- commandResponseBuilder.appendElementsUnique(temp);
- }
}
void waitForLinearizableReadConcern(OperationContext* opCtx) const override {