Commit 05d5bc9
Avoid recalculating pgprocno in ProcArrayAdd()
ProcArrayAdd() already calculates pgprocno via GetNumberFromPGProc()
at the top of the function, but the assignment to
arrayP->pgprocnos[index] redundantly called GetNumberFromPGProc()
again instead of reusing the local variable. This was introduced
in commit 28f3915.
Author: Shinya Kato <shinya11.kato@gmail.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/CAOzEurTJO2aqd9ewQmo9vjCrFUAD8Lk+raujCfK5oWoLGUP_3w@mail.gmail.com1 parent b597835 commit 05d5bc9
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
522 | | - | |
| 522 | + | |
523 | 523 | | |
524 | 524 | | |
525 | 525 | | |
| |||
0 commit comments