- Notifications
You must be signed in to change notification settings - Fork5k
Commitef64fe2
committed
aio: Add WARNING result status
If an IO succeeds, but issues a warning, e.g. due to a page verificationfailure with zero_damaged_pages, we want to issue that warning in the contextof the issuer of the IO, not the process that executes the completion (alwaysthe case for worker).It's already possible for a completion callback to report a custom errormessage, we just didn't have a result status that allowed a user of AIO toknow that a warning should be emitted even though the IO request succeeded.All that's needed for that is a dedicated PGAIO_RS_ value.Previously there were not enough bits in PgAioResult.id for the newvalue. Increase. While at that, add defines for the amount of bits and staticasserts to check that the widths are appropriate.Reviewed-by: Noah Misch <noah@leadboat.com>Discussion:https://postgr.es/m/20250329212929.a6.nmisch@google.com1 parentd445990 commitef64fe2
File tree
4 files changed
+29
-6
lines changed- src
- backend/storage/aio
- include/storage
4 files changed
+29
-6
lines changedLines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
839 | 839 |
| |
840 | 840 |
| |
841 | 841 |
| |
| 842 | + | |
| 843 | + | |
842 | 844 |
| |
843 | 845 |
| |
844 | 846 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
83 | 83 |
| |
84 | 84 |
| |
85 | 85 |
| |
| 86 | + | |
86 | 87 |
| |
87 | 88 |
| |
88 | 89 |
| |
|
Lines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
191 | 191 |
| |
192 | 192 |
| |
193 | 193 |
| |
194 |
| - | |
| 194 | + | |
195 | 195 |
| |
196 | 196 |
| |
197 | 197 |
| |
198 | 198 |
| |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
199 | 203 |
| |
200 | 204 |
| |
201 | 205 |
| |
|
Lines changed: 21 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
79 | 79 |
| |
80 | 80 |
| |
81 | 81 |
| |
82 |
| - | |
83 |
| - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
84 | 85 |
| |
85 | 86 |
| |
86 | 87 |
| |
87 | 88 |
| |
88 | 89 |
| |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
89 | 95 |
| |
| 96 | + | |
| 97 | + | |
| 98 | + | |
90 | 99 |
| |
91 | 100 |
| |
92 | 101 |
| |
93 | 102 |
| |
94 | 103 |
| |
95 | 104 |
| |
96 |
| - | |
| 105 | + | |
97 | 106 |
| |
98 | 107 |
| |
99 |
| - | |
| 108 | + | |
100 | 109 |
| |
101 | 110 |
| |
102 |
| - | |
| 111 | + | |
103 | 112 |
| |
104 | 113 |
| |
105 | 114 |
| |
106 | 115 |
| |
107 | 116 |
| |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
108 | 124 |
| |
109 | 125 |
| |
110 | 126 |
| |
|
0 commit comments
Comments
(0)