Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+1-1
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

+1-1
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)