diff options
author | Spencer Jackson <spencer.jackson@mongodb.com> | 2018-11-27 12:02:02 -0500 |
---|---|---|
committer | Spencer Jackson <spencer.jackson@mongodb.com> | 2018-12-03 17:43:53 -0500 |
commit | 74921ac92c1330f754eed39c8e7148955aca2be9 (patch) | |
tree | eed5f46b6cd11e0e5edaf907988a91dd107d42fa /src/mongo/db/service_entry_point_mongod.cpp | |
parent | f439d76860cf8307c5d6ba3fe421b8c88a7c3d8c (diff) | |
download | mongo-74921ac92c1330f754eed39c8e7148955aca2be9.tar.gz |
SERVER-28871: Remove user management command write concern backwards compatibility
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 d09db7a73ed..60dfe11f99c 100644 --- a/src/mongo/db/service_entry_point_mongod.cpp +++ b/src/mongo/db/service_entry_point_mongod.cpp @@ -102,15 +102,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::appendCommandStatusNoThrow(commandResponseBuilder, waitForWCStatus); - commandResponseBuilder.appendElementsUnique(temp); - } } void waitForLinearizableReadConcern(OperationContext* opCtx) const override { |