mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +03:00
Post-PG 10 beta1 pgindent run
perltidy run not included.
This commit is contained in:
@@ -1176,9 +1176,12 @@ XLogWalRcvSendHSFeedback(bool immed)
|
||||
{
|
||||
TimestampTz now;
|
||||
TransactionId nextXid;
|
||||
uint32 xmin_epoch, catalog_xmin_epoch;
|
||||
TransactionId xmin, catalog_xmin;
|
||||
uint32 xmin_epoch,
|
||||
catalog_xmin_epoch;
|
||||
TransactionId xmin,
|
||||
catalog_xmin;
|
||||
static TimestampTz sendTime = 0;
|
||||
|
||||
/* initially true so we always send at least one feedback message */
|
||||
static bool master_has_standby_xmin = true;
|
||||
|
||||
@@ -1211,8 +1214,8 @@ XLogWalRcvSendHSFeedback(bool immed)
|
||||
*
|
||||
* Bailing out here also ensures that we don't send feedback until we've
|
||||
* read our own replication slot state, so we don't tell the master to
|
||||
* discard needed xmin or catalog_xmin from any slots that may exist
|
||||
* on this replica.
|
||||
* discard needed xmin or catalog_xmin from any slots that may exist on
|
||||
* this replica.
|
||||
*/
|
||||
if (!HotStandbyActive())
|
||||
return;
|
||||
@@ -1232,7 +1235,7 @@ XLogWalRcvSendHSFeedback(bool immed)
|
||||
* excludes the catalog_xmin.
|
||||
*/
|
||||
xmin = GetOldestXmin(NULL,
|
||||
PROCARRAY_FLAGS_DEFAULT|PROCARRAY_SLOTS_XMIN);
|
||||
PROCARRAY_FLAGS_DEFAULT | PROCARRAY_SLOTS_XMIN);
|
||||
|
||||
ProcArrayGetReplicationSlotXmin(&slot_xmin, &catalog_xmin);
|
||||
|
||||
@@ -1253,9 +1256,9 @@ XLogWalRcvSendHSFeedback(bool immed)
|
||||
GetNextXidAndEpoch(&nextXid, &xmin_epoch);
|
||||
catalog_xmin_epoch = xmin_epoch;
|
||||
if (nextXid < xmin)
|
||||
xmin_epoch --;
|
||||
xmin_epoch--;
|
||||
if (nextXid < catalog_xmin)
|
||||
catalog_xmin_epoch --;
|
||||
catalog_xmin_epoch--;
|
||||
|
||||
elog(DEBUG2, "sending hot standby feedback xmin %u epoch %u catalog_xmin %u catalog_xmin_epoch %u",
|
||||
xmin, xmin_epoch, catalog_xmin, catalog_xmin_epoch);
|
||||
|
||||
Reference in New Issue
Block a user