pgsql: bufmgr: Restructure AsyncReadBuffers() - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: bufmgr: Restructure AsyncReadBuffers()
Date
Msg-id E1w5nd3-001ZE2-2g@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
bufmgr: Restructure AsyncReadBuffers()

Restructure AsyncReadBuffers() to use early return when the head buffer is
already valid, instead of using a did_start_io flag and if/else branches. Also
move around a bit of the code to be located closer to where it is used. This
is a refactor only.

Author: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/zljergweqti7x67lg5ije2rzjusie37nslsnkjkkby4laqqbfw@3p3zu522yykv

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8a1a1d6ab86217020a612ee2e03eae4fe00ae781

Modified Files
--------------
src/backend/storage/buffer/bufmgr.c | 157 +++++++++++++++++++-----------------
1 file changed, 81 insertions(+), 76 deletions(-)


pgsql-committers by date:

Previous
From: Robert Haas
Date:
Subject: pgsql: pg_plan_advice: Refactor to invent pgpa_planner_info
Next
From: Andres Freund
Date:
Subject: pgsql: Address perlcritic complaint in response to 906a0469728