Skip to content

Commit f8c5855

Browse files
committed
Fix typo in ReorderBufferIterTXNInit().
This looks like it would cause changes from subtransactions to be missed by the iterator being constructed, if those changes had been spilled to disk previously. This implies that large subtransactions might be lost (in whole or in part) by logical replication. Found and fixed by Petru-Florin Mihancea, per bug #14208. Report: <20160622144830.5791.22512@wrigleys.postgresql.org>
1 parent 3154e16 commit f8c5855

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/replication/logical/reorderbuffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ ReorderBufferIterTXNInit(ReorderBuffer *rb, ReorderBufferTXN *txn)
960960
{
961961
ReorderBufferChange *cur_change;
962962

963-
if (txn->nentries != txn->nentries_mem)
963+
if (cur_txn->nentries != cur_txn->nentries_mem)
964964
ReorderBufferRestoreChanges(rb, cur_txn,
965965
&state->entries[off].fd,
966966
&state->entries[off].segno);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy