postgres.git / summary / log / commit / refs

commit    1ae87df63ff693a91fbcb968850103a5a5d8cd96
Author:   Peter Eisentraut <peter@eisentraut.org>
Date:     Mon Jul 13 09:01:36 2026 +0000

    Clean up copy_file_range() return type
    
    The return type is ssize_t, not int.  Fix that in one instance; the
    others were already okay.
    
    Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi>
    Discussion: https://www.postgresql.org/message-id/flat/f9aab072-0078-49e4-ab93-3b08086a4406@eisentraut.org


src/bin/pg_combinebackup/reconstruct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/pg_combinebackup/reconstruct.c b/src/bin/pg_combinebackup/reconstruct.c index 8748d38d4b6..5000f7be001 100644 --- a/src/bin/pg_combinebackup/reconstruct.c +++ b/src/bin/pg_combinebackup/reconstruct.c @@ -695,7 +695,7 @@ write_reconstructed_file(const char *input_filename, */ do { - int wb; + ssize_t wb; wb = copy_file_range(s->fd, &off, wfd, NULL, BLCKSZ - nwritten, 0); [parent: 302222eddc39]