From: | Ajin Cherian <itsajin(at)gmail(dot)com> |
---|---|
To: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
Cc: | Michael Paquier <michael(at)paquier(dot)xyz>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Simon Riggs <simon(at)2ndquadrant(dot)com>, Nikhil Sontakke <nikhils(at)2ndquadrant(dot)com> |
Subject: | Re: Track replica origin progress for Rollback Prepared |
Date: | 2021-01-13 08:33:12 |
Message-ID: | CAFPTHDYsggrczdfcMe65bGW8x3okzx5YuGFH9UBuNG8udkuY5A@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Wed, Jan 13, 2021 at 6:28 PM Ajin Cherian <itsajin(at)gmail(dot)com> wrote:
> I added the below log:
Small correction, I sent the wrong code change for logging, this was
the correct one:
@@ -5976,6 +5977,14 @@ xact_redo_abort(xl_xact_parsed_abort *parsed,
TransactionId xid)
StandbyReleaseLockTree(xid, parsed->nsubxacts,
parsed->subxacts);
}
+ if (parsed->xinfo & XACT_XINFO_HAS_ORIGIN)
+ {
+ /* recover apply progress */
+ replorigin_advance(origin_id, parsed->origin_lsn, lsn,
+ false /* backward
*/, false /* WAL */);
+ elog(LOG,"recover apply progress in red abort");
+ }
+
regards,
Ajin Cherian
Fujitsu Australia
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2021-01-13 08:41:44 | Re: Yet another fast GiST build |
Previous Message | Peter Eisentraut | 2021-01-13 08:27:37 | Re: Improper use about DatumGetInt32 |