Skip to content

Commit 36b236c

Browse files
committed
Add assertion for origin id in xact_redo
1 parent d30ce26 commit 36b236c

File tree

1 file changed

+1
-0
lines changed
  • src/backend/access/transam

1 file changed

+1
-0
lines changed

src/backend/access/transam/xact.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5667,6 +5667,7 @@ xact_redo(XLogReaderState *record)
56675667

56685668
if (parsed.xinfo & XACT_XINFO_HAS_ORIGIN)
56695669
{
5670+
Assert(XLogRecGetOrigin(record) != InvalidRepOriginId);
56705671
/* recover apply progress */
56715672
replorigin_advance(XLogRecGetOrigin(record), parsed.origin_lsn,
56725673
record->EndRecPtr, false /* backward */ , false /* WAL */ );

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