forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3b4ac33
committed
Avoid type cheats for invalid dsa_handles and dshash_table_handles.
Invent separate macros for "invalid" values of these types, so thatwe needn't embed knowledge of their representations into calling code.These are all zeroes anyway ATM, so this is not fixing any live bug,but it makes the code cleaner and more future-proof.I (tgl) also chose to move DSM_HANDLE_INVALID into dsm_impl.h,since it seems like it should live beside the typedef for dsm_handle.Hou Zhijie, Nathan Bossart, Kyotaro Horiguchi, Tom LaneDiscussion:https://postgr.es/m/OS0PR01MB5716860B1454C34E5B179B6694C99@OS0PR01MB5716.jpnprd01.prod.outlook.com1 parentd7c4830 commit3b4ac33
File tree
7 files changed
+18
-12
lines changed- src
- backend
- replication/logical
- storage/ipc
- utils/mmgr
- include
- lib
- storage
- utils
7 files changed
+18
-12
lines changedLines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
922 | 922 |
| |
923 | 923 |
| |
924 | 924 |
| |
925 |
| - | |
926 |
| - | |
| 925 | + | |
| 926 | + | |
927 | 927 |
| |
928 | 928 |
| |
929 | 929 |
| |
| |||
947 | 947 |
| |
948 | 948 |
| |
949 | 949 |
| |
950 |
| - | |
| 950 | + | |
951 | 951 |
| |
952 | 952 |
| |
953 | 953 |
| |
| |||
957 | 957 |
| |
958 | 958 |
| |
959 | 959 |
| |
960 |
| - | |
| 960 | + | |
961 | 961 |
| |
962 | 962 |
| |
963 | 963 |
| |
|
Lines changed: 2 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
173 | 173 |
| |
174 | 174 |
| |
175 | 175 |
| |
176 |
| - | |
177 |
| - | |
178 |
| - | |
| 176 | + | |
| 177 | + | |
179 | 178 |
| |
180 | 179 |
| |
181 | 180 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
505 | 505 |
| |
506 | 506 |
| |
507 | 507 |
| |
508 |
| - | |
| 508 | + | |
509 | 509 |
| |
510 | 510 |
| |
511 | 511 |
| |
| |||
554 | 554 |
| |
555 | 555 |
| |
556 | 556 |
| |
557 |
| - | |
| 557 | + | |
558 | 558 |
| |
559 | 559 |
| |
560 | 560 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
| 26 | + | |
| 27 | + | |
| 28 | + | |
26 | 29 |
| |
27 | 30 |
| |
28 | 31 |
| |
|
Lines changed: 0 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 |
| - | |
23 |
| - | |
24 |
| - | |
25 | 22 |
| |
26 | 23 |
| |
27 | 24 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
| 57 | + | |
| 58 | + | |
| 59 | + | |
57 | 60 |
| |
58 | 61 |
| |
59 | 62 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
99 | 99 |
| |
100 | 100 |
| |
101 | 101 |
| |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
102 | 106 |
| |
103 | 107 |
| |
104 | 108 |
| |
|
0 commit comments
Comments
(0)