Commit efa70c1
committed
Make GetSlotInvalidationCause() return RS_INVAL_NONE on unexpected input
943f7ae has changed GetSlotInvalidationCause() so as it would
return the last element of SlotInvalidationCauses[] when an incorrect
conflict reason name is given by a caller, but this should return
RS_INVAL_NONE in such cases, even if such a state should never be
reached in practice.
Per gripe from Peter Smith.
Reviewed-by: Bharath Rupireddy
Discussion: https://postgr.es/m/CAHut+PtsrSWxczpGkSaSVtJo+BXrvJ3Hwp5gES14bbL-G+HL7A@mail.gmail.com1 parent 93db6cb commit efa70c1
1 file changed
+3
-1
lines changed| 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