diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2022-02-07 16:50:03 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-02-07 20:30:56 +0000 |
commit | 522da292b8e89d6288916f744f318cb1f32ac8a8 (patch) | |
tree | ae361da0444a406929da01bfb50786ba8387a1b1 /src/mongo/s/write_ops/batch_write_op.cpp | |
parent | ccd044ecf761baf8a8cb6487b2ebe676e6611599 (diff) | |
download | mongo-522da292b8e89d6288916f744f318cb1f32ac8a8.tar.gz |
SERVER-63331 Remove useless methods from BatchCommandResponse
Diffstat (limited to 'src/mongo/s/write_ops/batch_write_op.cpp')
-rw-r--r-- | src/mongo/s/write_ops/batch_write_op.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/mongo/s/write_ops/batch_write_op.cpp b/src/mongo/s/write_ops/batch_write_op.cpp index ecf57cd2e8f..e78924ae529 100644 --- a/src/mongo/s/write_ops/batch_write_op.cpp +++ b/src/mongo/s/write_ops/batch_write_op.cpp @@ -711,7 +711,6 @@ void BatchWriteOp::noteBatchError(const TargetedWriteBatch& targetedBatch, emulatedResponse.addToErrDetails(errorClone.release()); } - dassert(emulatedResponse.isValid(nullptr)); noteBatchResponse(targetedBatch, emulatedResponse, nullptr); } @@ -766,7 +765,6 @@ void BatchWriteOp::buildClientResponse(BatchedCommandResponse* batchResp) { // For non-verbose, it's all we need. if (!_clientRequest.isVerboseWC()) { - dassert(batchResp->isValid(nullptr)); return; } @@ -844,8 +842,6 @@ void BatchWriteOp::buildClientResponse(BatchedCommandResponse* batchResp) { _numModified >= 0) { batchResp->setNModified(_numModified); } - - dassert(batchResp->isValid(nullptr)); } int BatchWriteOp::numWriteOpsIn(WriteOpState opState) const { |