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

From: Julien Rouhaud <rjuju123(at)gmail(dot)com>
To: Michael Paquier <michael(at)paquier(dot)xyz>
Cc: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: Re: pgsql: Extend sendFileWithContent() to handle custom content length in
Date: 2023-11-13 00:53:45
Message-ID: p424aoty2tlgosfkqmbii5axfd4wav2i3ppmgztjyvlqtxbdon@mas5monwneel
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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);

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2023-11-13 02:20:33 Re: pgsql: Extend sendFileWithContent() to handle custom content length in
Previous Message Michael Paquier 2023-11-12 23:36:58 pgsql: Extend sendFileWithContent() to handle custom content length in