From 76bc4f800ba2a103d67fa4600d3946f255927818 Mon Sep 17 00:00:00 2001 From: Billy Donahue Date: Tue, 24 Apr 2018 12:14:18 -0400 Subject: SERVER-28871 remove obsolete Command::isUserManagementCommand --- src/mongo/db/service_entry_point_mongod.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/mongo/db/service_entry_point_mongod.cpp') 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 { -- cgit v1.2.1