diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2018-04-24 12:14:18 -0400 |
---|---|---|
committer | Billy Donahue <billy.donahue@mongodb.com> | 2018-04-24 16:34:41 -0400 |
commit | 76bc4f800ba2a103d67fa4600d3946f255927818 (patch) | |
tree | 41753625aad1bcca379adb81bf6e58f4d3268fb8 /src/mongo/db/service_entry_point_mongod.cpp | |
parent | c963ca0e1c6ef2f6fe4910e0e149cc2b2cbe602a (diff) | |
download | mongo-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.cpp | 9 |
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 { |