mirror of
https://github.com/postgres/postgres.git
synced 2025-12-19 17:02:53 +03:00
Use XLogRecPtrIsValid() in various places
Now that commit 06edbed478 has introduced XLogRecPtrIsValid(), we can
use that instead of:
- XLogRecPtrIsInvalid()
- direct comparisons with InvalidXLogRecPtr
- direct comparisons with literal 0
This makes the code more consistent.
Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Discussion: https://postgr.es/m/aQB7EvGqrbZXrMlg@ip-10-97-1-34.eu-west-3.compute.internal
This commit is contained in:
@@ -230,7 +230,7 @@ wakeupWaiters(WaitLSNType lsnType, XLogRecPtr currentLSN)
|
||||
/* Get procInfo using appropriate heap node */
|
||||
procInfo = pairingheap_container(WaitLSNProcInfo, heapNode[i], node);
|
||||
|
||||
if (!XLogRecPtrIsInvalid(currentLSN) && procInfo->waitLSN > currentLSN)
|
||||
if (XLogRecPtrIsValid(currentLSN) && procInfo->waitLSN > currentLSN)
|
||||
break;
|
||||
|
||||
Assert(numWakeUpProcs < WAKEUP_PROC_STATIC_ARRAY_SIZE);
|
||||
|
||||
Reference in New Issue
Block a user