(x, xs)
| 788 | } |
| 789 | |
| 790 | function tryNext(x, xs) { |
| 791 | return ( |
| 792 | (x === 'read-write' && xs.default_transaction_read_only === 'on') || |
| 793 | (x === 'read-only' && xs.default_transaction_read_only === 'off') || |
| 794 | (x === 'primary' && xs.in_hot_standby === 'on') || |
| 795 | (x === 'standby' && xs.in_hot_standby === 'off') || |
| 796 | (x === 'prefer-standby' && xs.in_hot_standby === 'off' && options.host[retries]) |
| 797 | ) |
| 798 | } |
| 799 | |
| 800 | function fetchState() { |
| 801 | const query = new Query([` |