Re: Coding in WalSndWaitForWal

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Coding in WalSndWaitForWal
Дата
Msg-id 20191111165340.GA12516@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: Coding in WalSndWaitForWal  (Amit Kapila <amit.kapila16@gmail.com>)
Ответы Re: Coding in WalSndWaitForWal
Re: Coding in WalSndWaitForWal
Список pgsql-hackers
On 2019-Nov-11, Amit Kapila wrote:

> On Mon, Nov 11, 2019 at 7:53 AM Michael Paquier <michael@paquier.xyz> wrote:

> > So your suggestion would be to call GetFlushRecPtr() before the first
> > check on RecentFlushPtr and before entering the loop?
> 
> No.  What I meant was to keep the current code as-is and have an
> additional check on RecentFlushPtr before entering the loop.

I noticed that the "return" at the bottom of the function does a
SetLatch(), but the other returns do not.  Isn't that a bug?

Also, what's up with those useless returns?

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Вложения

В списке pgsql-hackers по дате отправления: