summaryrefslogtreecommitdiff
path: root/src/mongo/db/service_entry_point_mongod.cpp
diff options
context:
space:
mode:
authorSpencer Jackson <spencer.jackson@mongodb.com>2018-11-27 12:02:02 -0500
committerSpencer Jackson <spencer.jackson@mongodb.com>2018-12-03 17:43:53 -0500
commit74921ac92c1330f754eed39c8e7148955aca2be9 (patch)
treeeed5f46b6cd11e0e5edaf907988a91dd107d42fa /src/mongo/db/service_entry_point_mongod.cpp
parentf439d76860cf8307c5d6ba3fe421b8c88a7c3d8c (diff)
downloadmongo-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.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 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 {