diff options
author | Robert Haas <rhaas@postgresql.org> | 2023-10-03 11:00:40 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2023-10-03 11:00:40 -0400 |
commit | c2ba3fdea5938dff96ca32ed7a4a83c8ff5f188d (patch) | |
tree | b7b66617fbf97bff881b7933d731470b682cf0a8 /src/backend/commands/indexcmds.c | |
parent | 053183138a7a11408d6faa9281001ff7b1ffee2e (diff) | |
download | postgresql-c2ba3fdea5938dff96ca32ed7a4a83c8ff5f188d.tar.gz postgresql-c2ba3fdea5938dff96ca32ed7a4a83c8ff5f188d.zip |
In basebackup.c, refactor to create read_file_data_into_buffer.
This further reduces the length and complexity of sendFile(),
hopefully make it easier to understand and modify. In addition
to moving some logic into a new function, I took this opportunity
to make a few slight adjustments to sendFile() itself, including
renaming the 'len' variable to 'bytes_done', since we use it to represent
the number of bytes we've already handled so far, not the total
length of the file.
Patch by me, reviewed by David Steele.
Discussion: http://postgr.es/m/CA+TgmoYt5jXH4U6cu1dm9Oe2FTn1aae6hBNhZzJJjyjbE_zYig@mail.gmail.com
Diffstat (limited to 'src/backend/commands/indexcmds.c')
0 files changed, 0 insertions, 0 deletions