diff options
Diffstat (limited to 'src/mongo/db/s/resharding/resharding_data_copy_util.cpp')
-rw-r--r-- | src/mongo/db/s/resharding/resharding_data_copy_util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/resharding/resharding_data_copy_util.cpp b/src/mongo/db/s/resharding/resharding_data_copy_util.cpp index 5bfde9adf0d..912677b3854 100644 --- a/src/mongo/db/s/resharding/resharding_data_copy_util.cpp +++ b/src/mongo/db/s/resharding/resharding_data_copy_util.cpp @@ -214,7 +214,7 @@ std::vector<InsertStatement> fillBatchForInsert(Pipeline& pipeline, int batchSiz // to be marked as having started. auto opCtx = pipeline.getContext()->opCtx; auto* curOp = CurOp::get(opCtx); - curOp->ensureStarted(opCtx); + curOp->ensureStarted(); ON_BLOCK_EXIT([curOp] { curOp->done(); }); std::vector<InsertStatement> batch; |