diff options
-rw-r--r-- | src/mongo/s/write_ops/batch_write_op.cpp | 5 | ||||
-rw-r--r-- | src/mongo/s/write_ops/batch_write_op.h | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/src/mongo/s/write_ops/batch_write_op.cpp b/src/mongo/s/write_ops/batch_write_op.cpp index ea46c31ff6c..752bbee8ec9 100644 --- a/src/mongo/s/write_ops/batch_write_op.cpp +++ b/src/mongo/s/write_ops/batch_write_op.cpp @@ -212,11 +212,6 @@ BatchWriteOp::BatchWriteOp(OperationContext* opCtx, const BatchedCommandRequest& } } -BatchWriteOp::~BatchWriteOp() { - // Caller's responsibility to dispose of TargetedBatches - invariant(_targeted.empty()); -} - Status BatchWriteOp::targetBatch(const NSTargeter& targeter, bool recordTargetErrors, std::map<ShardId, TargetedWriteBatch*>* targetedBatches) { diff --git a/src/mongo/s/write_ops/batch_write_op.h b/src/mongo/s/write_ops/batch_write_op.h index 1398096ded6..a5eec12d6c7 100644 --- a/src/mongo/s/write_ops/batch_write_op.h +++ b/src/mongo/s/write_ops/batch_write_op.h @@ -121,7 +121,7 @@ class BatchWriteOp { public: BatchWriteOp(OperationContext* opCtx, const BatchedCommandRequest& clientRequest); - ~BatchWriteOp(); + ~BatchWriteOp() = default; /** * Targets one or more of the next write ops in this batch op using a NSTargeter. The |