localbuf: Introduce InvalidateLocalBuffer() Previously, there were three copies of this code, two of them identical. There's no good reason for that.
This change is nice on its own, but the main motivation is the AIO patchset, which needs to add extra checks the deduplicated code, which of course is easier if there is only one version. Reviewed-by: Melanie Plageman <melanieplage...@gmail.com> Discussion: https://postgr.es/m/caakru_b9anbwzes5aaf9wcvcevmgz-1akhsq-clly-p7whz...@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/0762a151b0e018944694ccac07e521adcdf7a06f Modified Files -------------- src/backend/storage/buffer/localbuf.c | 92 +++++++++++++++++------------------ 1 file changed, 44 insertions(+), 48 deletions(-)