Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1980d35

Browse files
committed
pg_basebackup: Correct type of WalSegSz
The pg_basebackup code had WalSegSz as uint32, whereas the rest of thecode has it as int. This seems confusing, and using the extra rangewouldn'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 parent3f476c9 commit1980d35

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
#defineERRCODE_DUPLICATE_OBJECT "42710"
3333

34-
uint32WalSegSz;
34+
intWalSegSz;
3535

3636
staticboolRetrieveDataDirCreatePerm(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
externchar*dbport;
2525
externchar*dbname;
2626
externintdbgetpassword;
27-
externuint32WalSegSz;
27+
externintWalSegSz;
2828

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp