Re: Duplicated assignment of slot_name in walsender.c

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Duplicated assignment of slot_name in walsender.c
Дата
Msg-id 20151021202125.GA3391@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: Duplicated assignment of slot_name in walsender.c  (Euler Taveira <euler@timbira.com.br>)
Ответы Re: Duplicated assignment of slot_name in walsender.c  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
Euler Taveira wrote:

> It seems that the 2nd assignment was an oversight. Spotted by Bernd
> Helmle.

I think the first assignment is also pointless -- I mean can't we just
use MyReplicationSlot->data.name in both places where slot_name is used?

In the same routine, it seems wasteful to be doing strlen() twice for
every string sent over the wire.

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



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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Freezing without cleanup lock
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Duplicated assignment of slot_name in walsender.c