Function: advanceCookieFromChanges()
Function: advanceCookieFromChanges()
Section titled “Function: advanceCookieFromChanges()”advanceCookieFromChanges(
cookie,rows):CausalCookie
Defined in: server/src/multi-region.ts:115
Advance the current pull cookie against a change_log row set.
Each change row has a row_version and an origin_region. We accumulate
the max local_version per region and merge into the incoming cookie.
Parameters
Section titled “Parameters”cookie
Section titled “cookie”CausalCookie
readonly { row_version: number | bigint; origin_region: number; }[]
Returns
Section titled “Returns”CausalCookie