forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd5f6f13
committed
Be more consistent about masking xl_info with ~XLR_INFO_MASK.
Generally, WAL resource managers are only supposed to examine thetop 4 bits of a WAL record's xl_info; the rest are reserved forthe WAL mechanism itself. A few places were not consistent aboutdoing this with respect to XLOG_CHECKPOINT and XLOG_SWITCH records.There's no bug currently, since no additional bits ever get set inthese specific record types, but that might not be true forever.Let's follow the generic coding rule here too.Michael Paquier1 parent367b99b commitd5f6f13
2 files changed
+10
-6
lines changedLines changed: 8 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
903 | 903 |
| |
904 | 904 |
| |
905 | 905 |
| |
| 906 | + | |
906 | 907 |
| |
907 |
| - | |
| 908 | + | |
908 | 909 |
| |
909 | 910 |
| |
910 | 911 |
| |
| |||
6170 | 6171 |
| |
6171 | 6172 |
| |
6172 | 6173 |
| |
6173 |
| - | |
| 6174 | + | |
6174 | 6175 |
| |
6175 | 6176 |
| |
6176 | 6177 |
| |
| |||
6328 | 6329 |
| |
6329 | 6330 |
| |
6330 | 6331 |
| |
6331 |
| - | |
| 6332 | + | |
6332 | 6333 |
| |
6333 | 6334 |
| |
6334 | 6335 |
| |
| |||
7785 | 7786 |
| |
7786 | 7787 |
| |
7787 | 7788 |
| |
| 7789 | + | |
7788 | 7790 |
| |
7789 | 7791 |
| |
7790 | 7792 |
| |
| |||
7810 | 7812 |
| |
7811 | 7813 |
| |
7812 | 7814 |
| |
| 7815 | + | |
7813 | 7816 |
| |
7814 | 7817 |
| |
7815 | 7818 |
| |
| |||
7852 | 7855 |
| |
7853 | 7856 |
| |
7854 | 7857 |
| |
7855 |
| - | |
7856 |
| - | |
| 7858 | + | |
| 7859 | + | |
7857 | 7860 |
| |
7858 | 7861 |
| |
7859 | 7862 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
462 | 462 |
| |
463 | 463 |
| |
464 | 464 |
| |
465 |
| - | |
| 465 | + | |
| 466 | + | |
466 | 467 |
| |
467 | 468 |
| |
468 | 469 |
| |
|
0 commit comments
Comments
(0)