pgsql: bufmgr: Restructure AsyncReadBuffers()

Поиск
Список
Период
Сортировка
От Andres Freund
Тема pgsql: bufmgr: Restructure AsyncReadBuffers()
Дата
Msg-id E1w5nd3-001ZE2-2g@gemulon.postgresql.org
обсуждение исходный текст
Список 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 по дате отправления: