mirror of
https://github.com/postgres/postgres.git
synced 2025-05-22 00:02:02 -04:00
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
This commit is contained in:
parent
3f476c9534
commit
1980d3585e
@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
#define ERRCODE_DUPLICATE_OBJECT "42710"
|
#define ERRCODE_DUPLICATE_OBJECT "42710"
|
||||||
|
|
||||||
uint32 WalSegSz;
|
int WalSegSz;
|
||||||
|
|
||||||
static bool RetrieveDataDirCreatePerm(PGconn *conn);
|
static bool RetrieveDataDirCreatePerm(PGconn *conn);
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ extern char *dbuser;
|
|||||||
extern char *dbport;
|
extern char *dbport;
|
||||||
extern char *dbname;
|
extern char *dbname;
|
||||||
extern int dbgetpassword;
|
extern int dbgetpassword;
|
||||||
extern uint32 WalSegSz;
|
extern int WalSegSz;
|
||||||
|
|
||||||
/* Connection kept global so we can disconnect easily */
|
/* Connection kept global so we can disconnect easily */
|
||||||
extern PGconn *conn;
|
extern PGconn *conn;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user