Skip to content

Commit 1980d35

Browse files
committed
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
1 parent 3f476c9 commit 1980d35

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bin/pg_basebackup/streamutil.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
#define ERRCODE_DUPLICATE_OBJECT "42710"
3333

34-
uint32 WalSegSz;
34+
int WalSegSz;
3535

3636
static bool RetrieveDataDirCreatePerm(PGconn *conn);
3737

src/bin/pg_basebackup/streamutil.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ extern char *dbuser;
2424
extern char *dbport;
2525
extern char *dbname;
2626
extern int dbgetpassword;
27-
extern uint32 WalSegSz;
27+
extern int WalSegSz;
2828

2929
/* Connection kept global so we can disconnect easily */
3030
extern PGconn *conn;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy