pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix LZ4 tests for remaining buffer space.
Date: Tue, 08 Mar 2022 15:14:06 +0000
Message-ID: <E1nRbXJ-001Uew-Ju@gemulon.postgresql.org> (raw)

Fix LZ4 tests for remaining buffer space.

We should flush the buffer when the remaining space is less than
the maximum amount that we might need, not when it is less than or
equal to the maximum amount we might need.

Jeevan Ladhe, per an observation from me.

Discussion: http://postgr.es/m/CANm22CgVMa85O1akgs+DOPE8NSrT1zbz5_vYfS83_r+6nCivLQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1d4be6be65ab18aa3b240d9bc912ebece255c53b

Modified Files
--------------
src/backend/replication/basebackup_lz4.c | 4 ++--
src/bin/pg_basebackup/bbstreamer_lz4.c   | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)



Message-ID: <E1nRbXJ-001Uew-Ju@gemulon.postgresql.org>
Permalink:  ../E1nRbXJ-001Uew-Ju@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1nRbXJ-001Uew-Ju@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: rhaas@postgresql.org
  Subject: Re: pgsql: Fix LZ4 tests for remaining buffer space.
  In-Reply-To: <E1nRbXJ-001Uew-Ju@gemulon.postgresql.org>
  References: <E1nRbXJ-001Uew-Ju@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox