Re: pgsql: Extend sendFileWithContent() to handle custom content length in

Поиск
Список
Период
Сортировка
От Julien Rouhaud
Тема Re: pgsql: Extend sendFileWithContent() to handle custom content length in
Дата
Msg-id p424aoty2tlgosfkqmbii5axfd4wav2i3ppmgztjyvlqtxbdon@mas5monwneel
обсуждение исходный текст
Ответ на pgsql: Extend sendFileWithContent() to handle custom content length in  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: pgsql: Extend sendFileWithContent() to handle custom content length in
Список pgsql-committers
Hi,

On Sun, Nov 12, 2023 at 11:36:58PM +0000, Michael Paquier wrote:
> Extend sendFileWithContent() to handle custom content length in basebackup.c
> [...]
> The patch extends sendFileWithContent() to be able to handle this case,
> where len < 0 can be used to indicate an arbitrary length rather than
> rely on strlen() for the content length.

Did you mean >= 0?

-   len = strlen(content);
+   if (len < 0)
+       len = strlen(content);



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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: pgsql: Extend sendFileWithContent() to handle custom content length in
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: pgsql: Extend sendFileWithContent() to handle custom content length in