forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitefa70c1
committed
Make GetSlotInvalidationCause() return RS_INVAL_NONE on unexpected input
943f7ae has changed GetSlotInvalidationCause() so as it wouldreturn the last element of SlotInvalidationCauses[] when an incorrectconflict reason name is given by a caller, but this should returnRS_INVAL_NONE in such cases, even if such a state should never bereached in practice.Per gripe from Peter Smith.Reviewed-by: Bharath RupireddyDiscussion:https://postgr.es/m/CAHut+PtsrSWxczpGkSaSVtJo+BXrvJ3Hwp5gES14bbL-G+HL7A@mail.gmail.com1 parent93db6cb commitefa70c1
1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2327 | 2327 |
| |
2328 | 2328 |
| |
2329 | 2329 |
| |
| 2330 | + | |
2330 | 2331 |
| |
2331 | 2332 |
| |
2332 | 2333 |
| |
| |||
2336 | 2337 |
| |
2337 | 2338 |
| |
2338 | 2339 |
| |
| 2340 | + | |
2339 | 2341 |
| |
2340 | 2342 |
| |
2341 | 2343 |
| |
2342 | 2344 |
| |
2343 | 2345 |
| |
2344 |
| - | |
| 2346 | + | |
2345 | 2347 |
|
0 commit comments
Comments
(0)