Small issues in syncrep.c

Поиск
Список
Период
Сортировка
От Julien Rouhaud
Тема Small issues in syncrep.c
Дата
Msg-id 02da4df2-0e47-aa83-cc65-271583ed3cbe@dalibo.com
обсуждение исходный текст
Ответы Re: Small issues in syncrep.c  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-hackers
Hello,

Since 14e8803f1, it's not necessary to acquire the SyncRepLock to see up
to date data. But it looks like this commit didn't update all the
comment around MyProc->syncRepState, which still mention retrieving the
value without and without lock.  Also, there's I think a now unneeded
test to try to retrieve again syncRepState.

Patch attached to fix both small issues, present since 9.5.

--
Julien Rouhaud
http://dalibo.com - http://dalibo.org

Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Logical Replication WIP
Следующее
От: Vladimir Sitnikov
Дата:
Сообщение: Re: Slowness of extended protocol