]> git.ipfire.org Git - thirdparty/postgresql.git/commit
read_stream: Move logic about IO combining & issuing to helpers
authorAndres Freund <andres@anarazel.de>
Sun, 5 Apr 2026 04:43:54 +0000 (00:43 -0400)
committerAndres Freund <andres@anarazel.de>
Sun, 5 Apr 2026 04:43:54 +0000 (00:43 -0400)
commit434dab76ba76fba5dacab2dc695b6b3d5df8315b
tree8d5f27d4f9380e96c5af4ed480cc61876e6b27f4
parenta9ee66881744d67193b56964b8398e5f83130956
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 <melanieplageman@gmail.com>
Reviewed-by: Nazir Bilal Yavuz <byavuz81@gmail.com>
Discussion: https://postgr.es/m/f3xxfrkafjxpyqxywcxricxgyizjirfceychyxsgn7bwjp5eda@kwbduhy7tfmu
src/backend/storage/aio/read_stream.c