summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/shard_local.h
diff options
context:
space:
mode:
authorjannaerin <golden.janna@gmail.com>2021-07-15 14:05:34 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-07-29 18:51:17 +0000
commit298d02f7432b84df2a955addc5bcdf6a366c6645 (patch)
treecd63849097905aee03c691c1fa400c6ba801b987 /src/mongo/db/s/shard_local.h
parent68f6c01d0f0452a9aef96e2da6289ce40fac2e41 (diff)
downloadmongo-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.h8
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,