mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-04 19:16:51 +02:00
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>
This commit is contained in:
parent
1651b9aa2d
commit
8caf9fe625
@ -897,7 +897,7 @@ ReorderBufferIterTXNInit(ReorderBuffer *rb, ReorderBufferTXN *txn)
|
||||
{
|
||||
ReorderBufferChange *cur_change;
|
||||
|
||||
if (txn->nentries != txn->nentries_mem)
|
||||
if (cur_txn->nentries != cur_txn->nentries_mem)
|
||||
ReorderBufferRestoreChanges(rb, cur_txn,
|
||||
&state->entries[off].fd,
|
||||
&state->entries[off].segno);
|
||||
|
Loading…
Reference in New Issue
Block a user