diff options
author | jannaerin <golden.janna@gmail.com> | 2021-07-15 14:05:34 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-07-29 18:51:17 +0000 |
commit | 298d02f7432b84df2a955addc5bcdf6a366c6645 (patch) | |
tree | cd63849097905aee03c691c1fa400c6ba801b987 /src/mongo/db/s/shard_local.cpp | |
parent | 68f6c01d0f0452a9aef96e2da6289ce40fac2e41 (diff) | |
download | mongo-298d02f7432b84df2a955addc5bcdf6a366c6645.tar.gz |
SERVER-49897 Insert no-op entries into oplog buffer collections for resharding so resuming is less wasteful
Diffstat (limited to 'src/mongo/db/s/shard_local.cpp')
-rw-r--r-- | src/mongo/db/s/shard_local.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mongo/db/s/shard_local.cpp b/src/mongo/db/s/shard_local.cpp index 8edbdcd95ef..aad3d286b07 100644 --- a/src/mongo/db/s/shard_local.cpp +++ b/src/mongo/db/s/shard_local.cpp @@ -212,9 +212,11 @@ void ShardLocal::runFireAndForgetCommand(OperationContext* opCtx, MONGO_UNREACHABLE; } -Status ShardLocal::runAggregation(OperationContext* opCtx, - const AggregateCommandRequest& aggRequest, - std::function<bool(const std::vector<BSONObj>& batch)> callback) { +Status ShardLocal::runAggregation( + OperationContext* opCtx, + const AggregateCommandRequest& aggRequest, + std::function<bool(const std::vector<BSONObj>& batch, + const boost::optional<BSONObj>& postBatchResumeToken)> callback) { return _rsLocalClient.runAggregation(opCtx, aggRequest, callback); } |