pg_basebackup: Correct type of WalSegSz
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 3 Apr 2023 05:13:52 +0000 (07:13 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 3 Apr 2023 05:21:06 +0000 (07:21 +0200)
commit1980d3585e3c7fce74b811ca8d77733036cae76c
tree0aeeab0bc9b4e2202839849bcaf2d4e3ee12253b
parent3f476c953495e4d52a1ac776f976df16964ba592
pg_basebackup: Correct type of WalSegSz

The pg_basebackup code had WalSegSz as uint32, whereas the rest of the
code has it as int.  This seems confusing, and using the extra range
wouldn't actually work.

Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://www.postgresql.org/message-id/flat/1bf15c7a-0acd-1864-081e-7a28814310fe%40enterprisedb.com
src/bin/pg_basebackup/streamutil.c
src/bin/pg_basebackup/streamutil.h