Re: pgsql: Extend sendFileWithContent() to handle custom content length in - Mailing list pgsql-committers

From Julien Rouhaud
Subject Re: pgsql: Extend sendFileWithContent() to handle custom content length in
Date
Msg-id p424aoty2tlgosfkqmbii5axfd4wav2i3ppmgztjyvlqtxbdon@mas5monwneel
Whole thread Raw
In response to pgsql: Extend sendFileWithContent() to handle custom content length in  (Michael Paquier <michael@paquier.xyz>)
Responses Re: pgsql: Extend sendFileWithContent() to handle custom content length in
List 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 by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Extend sendFileWithContent() to handle custom content length in
Next
From: Michael Paquier
Date:
Subject: Re: pgsql: Extend sendFileWithContent() to handle custom content length in