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

Commit3f4b174

Browse files
committed
Return value of lseek() can be negative on failure.
Because the return value of lseek() was assigned to an unsigned size_tvariable, we'd fail to notice an error return code -1. Compiler gave awarning about this.Andres Freund
1 parent325c54b commit3f4b174

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/replication/walsender.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,8 @@ SendTimeLineHistory(TimeLineHistoryCmd *cmd)
315315
charhistfname[MAXFNAMELEN];
316316
charpath[MAXPGPATH];
317317
intfd;
318-
size_thistfilelen;
319-
size_tbytesleft;
318+
off_thistfilelen;
319+
off_tbytesleft;
320320

321321
/*
322322
* Reply with a result set with one row, and two columns. The first col

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp