diff options
Diffstat (limited to 'src/mongo/s/query/store_possible_cursor.h')
-rw-r--r-- | src/mongo/s/query/store_possible_cursor.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/s/query/store_possible_cursor.h b/src/mongo/s/query/store_possible_cursor.h index 59f0a79c38a..a80302bc17d 100644 --- a/src/mongo/s/query/store_possible_cursor.h +++ b/src/mongo/s/query/store_possible_cursor.h @@ -72,6 +72,8 @@ class TaskExecutor; * @ cursorManager the ClusterCursorManager on which to register the resulting ClusterClientCursor * @ privileges the PrivilegeVector of privileges needed for the original command, to be used for * auth checking by GetMore + * @ routerSort the sort to apply on the router. With only one cursor this shouldn't be common, but + * is needed to set up change stream post-batch resume tokens correctly for per shard cursors. */ StatusWith<BSONObj> storePossibleCursor(OperationContext* opCtx, const ShardId& shardId, @@ -81,7 +83,8 @@ StatusWith<BSONObj> storePossibleCursor(OperationContext* opCtx, std::shared_ptr<executor::TaskExecutor> executor, ClusterCursorManager* cursorManager, PrivilegeVector privileges, - TailableModeEnum tailableMode = TailableModeEnum::kNormal); + TailableModeEnum tailableMode = TailableModeEnum::kNormal, + boost::optional<BSONObj> routerSort = boost::none); /** * Convenience function which extracts all necessary information from the passed RemoteCursor, and |