(tx: DbOrTx)
| 78 | * transaction, before acquiring any lock. |
| 79 | */ |
| 80 | export async function setForkLockTimeout(tx: DbOrTx): Promise<void> { |
| 81 | await tx.execute(sql`select set_config('lock_timeout', ${`${FORK_LOCK_TIMEOUT_MS}ms`}, true)`) |
| 82 | } |
| 83 | |
| 84 | /** |
| 85 | * Serialize concurrent promote/rollback on a fork edge with a transaction-scoped |
no test coverage detected