mirror of
https://github.com/postgres/postgres.git
synced 2025-06-17 17:02:08 +03:00
Rename VariableCacheData.nextFullXid to nextXid.
Including Full in variable names duplicates the type information and leads to overly long names. As FullTransactionId cannot accidentally be casted to TransactionId that does not seem necessary. Author: Andres Freund Discussion: https://postgr.es/m/20200724011143.jccsyvsvymuiqfxu@alap3.anarazel.de
This commit is contained in:
@ -396,7 +396,7 @@ gistRedoPageReuse(XLogReaderState *record)
|
||||
if (InHotStandby)
|
||||
{
|
||||
FullTransactionId latestRemovedFullXid = xlrec->latestRemovedFullXid;
|
||||
FullTransactionId nextFullXid = ReadNextFullTransactionId();
|
||||
FullTransactionId nextXid = ReadNextFullTransactionId();
|
||||
uint64 diff;
|
||||
|
||||
/*
|
||||
@ -405,8 +405,8 @@ gistRedoPageReuse(XLogReaderState *record)
|
||||
* logged value is very old, so that XID wrap-around already happened
|
||||
* on it, there can't be any snapshots that still see it.
|
||||
*/
|
||||
nextFullXid = ReadNextFullTransactionId();
|
||||
diff = U64FromFullTransactionId(nextFullXid) -
|
||||
nextXid = ReadNextFullTransactionId();
|
||||
diff = U64FromFullTransactionId(nextXid) -
|
||||
U64FromFullTransactionId(latestRemovedFullXid);
|
||||
if (diff < MaxTransactionId / 2)
|
||||
{
|
||||
|
Reference in New Issue
Block a user