diff options
Diffstat (limited to 'src/mongo/s/commands/cluster_write_cmd.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_write_cmd.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mongo/s/commands/cluster_write_cmd.cpp b/src/mongo/s/commands/cluster_write_cmd.cpp index b4dd380fae5..b0c5e248c8f 100644 --- a/src/mongo/s/commands/cluster_write_cmd.cpp +++ b/src/mongo/s/commands/cluster_write_cmd.cpp @@ -128,7 +128,6 @@ public: bool enhancedRun(OperationContext* opCtx, const OpMsgRequest& request, - string& errmsg, BSONObjBuilder& result) final { BatchedCommandRequest batchedRequest(_writeType); batchedRequest.parseRequest(request); @@ -180,13 +179,8 @@ public: ->addHostOpTimes(writer.getStats().getWriteOpTimes()); } - // TODO - // There's a pending issue about how to report response here. If we use - // the command infra-structure, we should reuse the 'errmsg' field. But - // we have already filed that message inside the BatchCommandResponse. - // return response.getOk(); result.appendElements(response.toBSON()); - return true; + return response.getOk(); } protected: |