Re: Proposal: "Causal reads" mode for load balancing reads without stale data
От | Amit Langote |
---|---|
Тема | Re: Proposal: "Causal reads" mode for load balancing reads without stale data |
Дата | |
Msg-id | 56B1CF9C.9070507@lab.ntt.co.jp обсуждение исходный текст |
Ответ на | Re: Proposal: "Causal reads" mode for load balancing reads without stale data (Thomas Munro <thomas.munro@enterprisedb.com>) |
Ответы |
Re: Proposal: "Causal reads" mode for load balancing reads
without stale data
|
Список | pgsql-hackers |
Hi Thomas, On 2016/01/20 13:12, Thomas Munro wrote: > That one conflicts with b1a9bad9e744857291c7d5516080527da8219854, so > here is a new version. - if (walsndctl->lsn[SYNC_REP_WAIT_WRITE] < MyWalSnd->write) + if (is_highest_priority_sync_standby) [ ... ] - if (walsndctl->lsn[SYNC_REP_WAIT_FLUSH] < MyWalSnd->flush) - { - walsndctl->lsn[SYNC_REP_WAIT_FLUSH] = MyWalSnd->flush; - numflush = SyncRepWakeQueue(false, SYNC_REP_WAIT_FLUSH); [ ... ] + if (walsndctl->lsn[SYNC_REP_WAIT_FLUSH] < MyWalSnd->write) + { + walsndctl->lsn[SYNC_REP_WAIT_FLUSH] = MyWalSnd->flush; + numflush = SyncRepWakeQueue(false, SYNC_REP_WAIT_FLUSH, + MyWalSnd->flush); There seems to be a copy-pasto there - shouldn't that be: + if (walsndctl->lsn[SYNC_REP_WAIT_FLUSH] < MyWalSnd->flush) Thanks, Amit
В списке pgsql-hackers по дате отправления: