summaryrefslogtreecommitdiff
path: root/src/mongo
diff options
context:
space:
mode:
authorBlake Oler <blake.oler@mongodb.com>2019-04-09 09:58:50 -0400
committerBlake Oler <blake.oler@mongodb.com>2019-04-24 18:59:01 -0400
commitc8debc4dbb35689fc79e036f6ee51d0c6f51e5fe (patch)
treece1364ad2982cd482de560b1a3d2022a11be5a45 /src/mongo
parenta663aa73d03b1f2f8c20b01490c1faf58d9afa1f (diff)
downloadmongo-c8debc4dbb35689fc79e036f6ee51d0c6f51e5fe.tar.gz
SERVER-40052 Remove unnecessary invariant in BatchWriteOp invariant
Diffstat (limited to 'src/mongo')
-rw-r--r--src/mongo/s/write_ops/batch_write_op.cpp5
-rw-r--r--src/mongo/s/write_ops/batch_write_op.h2
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