- Notifications
You must be signed in to change notification settings - Fork5.2k
Commitdae00f3
committed
aio: Improve assertions related to io_method
First, the assertions in assign_io_method() were the wrong way round. Second,the lengthof() assertion checked the length of io_method_options, which is thewrong array to check and is always longer than pgaio_method_ops_table.While add it, add a static assert to ensure pgaio_method_ops_table andio_method_options stay in sync.Per coverity and Tom Lane.Reported-by: Tom Lane <tgl@sss.pgh.pa.us>Backpatch-through: 181 parent2d83d72 commitdae00f3
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
92 | 95 | | |
93 | 96 | | |
94 | 97 | | |
| |||
1318 | 1321 | | |
1319 | 1322 | | |
1320 | 1323 | | |
| 1324 | + | |
1321 | 1325 | | |
1322 | | - | |
1323 | 1326 | | |
1324 | 1327 | | |
1325 | 1328 | | |
| |||
0 commit comments
Comments
(0)