pgsql: read_stream: Move logic about IO combining & issuing to helpers

Поиск
Список
Период
Сортировка
Искать

pgsql: read_stream: Move logic about IO combining & issuing to helpers

От:
Andres Freund <andres@anarazel.de>
Дата:
read_stream: Move logic about IO combining & issuing to helpers

The long if statements were hard to read and hard to document. Splitting them
into inline helpers makes it much easier to explain each part separately.

This is done in preparation for making the logic more complicated...

Reviewed-by: Melanie Plageman 
Reviewed-by: Nazir Bilal Yavuz 
Discussion: https://postgr.es/m/f3xxfrkafjxpyqxywcxricxgyizjirfceychyxsgn7bwjp5eda@kwbduhy7tfmu

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/434dab76ba76fba5dacab2dc695b6b3d5df8315b

Modified Files
--------------
src/backend/storage/aio/read_stream.c | 97 +++++++++++++++++++++++++++++------
1 file changed, 80 insertions(+), 17 deletions(-)

FAQ