- Notifications
You must be signed in to change notification settings - Fork5.3k
Commitd2965f6
committed
Introduce XLogRecPtrIsValid()
XLogRecPtrIsInvalid() is inconsistent with the affirmative form ofmacros used for other datatypes, and leads to awkward double negativesin a few places. This commit introduces XLogRecPtrIsValid(), whichallows code to be written more naturally.This patch only adds the new macro. XLogRecPtrIsInvalid() is left inplace, and all existing callers remain untouched. This means allsupported branches can accept hypothetical bug fixes that use the newmacro, and at the same time any code that compiled with the originalformulation will continue to silently compile just fine.Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>Backpatch-through: 13Discussion:https://postgr.es/m/aQB7EvGqrbZXrMlg@ip-10-97-1-34.eu-west-3.compute.internal1 parentccfe28e commitd2965f6
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
0 commit comments
Comments
(0)