pgsql: Remove redundant fetch of the recent flush pointer in WalSndWait

Поиск
Список
Период
Сортировка
От Amit Kapila
Тема pgsql: Remove redundant fetch of the recent flush pointer in WalSndWait
Дата
Msg-id E1rjuMi-003Mxb-MH@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Remove redundant fetch of the recent flush pointer in WalSndWaitForWal.

In WalSndWaitForWal(), we fetch a recent flush pointer both outside the
loop and inside the loop. But we start using RecentFlushPtr only after we
fetch it inside the loop. So we can remove one outside the loop.

Author: Shveta Malik
Reviewed-by: Bertrand Drouvot, Matthias van de Meent, Amit Kapila
Discussion: https://postgr.es/m/CAJpy0uBSCQz1yMD-WiEthzEe23dti2-Kr_pitVb7vAPFbFKm=A@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/397cd0b3c7d18c21daea175a8280afea723f4eac

Modified Files
--------------
src/backend/replication/walsender.c | 6 ------
1 file changed, 6 deletions(-)


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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: pgsql: Use printf's %m format instead of strerror(errno) in more places
Следующее
От: Michael Paquier
Дата:
Сообщение: pgsql: Keep replication slot statistics on invalidation