diff options
Diffstat (limited to 'src/mongo')
-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 dc5da6c1694..29cc054c951 100644 --- a/src/mongo/s/write_ops/batch_write_op.cpp +++ b/src/mongo/s/write_ops/batch_write_op.cpp @@ -249,11 +249,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 3c946f0f4fe..f4ef76bb2c8 100644 --- a/src/mongo/s/write_ops/batch_write_op.h +++ b/src/mongo/s/write_ops/batch_write_op.h @@ -125,7 +125,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 |