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.h | |
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.h')
-rw-r--r-- | src/mongo/db/s/shard_local.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mongo/db/s/shard_local.h b/src/mongo/db/s/shard_local.h index a9ec0d82a22..ed88dfeb10c 100644 --- a/src/mongo/db/s/shard_local.h +++ b/src/mongo/db/s/shard_local.h @@ -70,9 +70,11 @@ public: const std::string& dbName, const BSONObj& cmdObj) override; - Status runAggregation(OperationContext* opCtx, - const AggregateCommandRequest& aggRequest, - std::function<bool(const std::vector<BSONObj>& batch)> callback); + Status runAggregation( + OperationContext* opCtx, + const AggregateCommandRequest& aggRequest, + std::function<bool(const std::vector<BSONObj>& batch, + const boost::optional<BSONObj>& postBatchResumeToken)> callback); private: StatusWith<Shard::CommandResponse> _runCommand(OperationContext* opCtx, |