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

Commitda083b2

Browse files
committed
Initialize variable to placate compiler.
I don't think there's a real problem here, because if we reachthe loop over 'tles' then we will either find at least oneTimeLineHistoryEntry such that oldest_segno != 0, in which caseunsummarized_lsn will be initialized, or else unsummarized_tliwill remain 0 and an error will occur before unsummarized_lsnis used for anything. But some compilers are complainining, asreported on list by Nathan Bossart and off-list by Andrew Dunstan.Discussion:http://postgr.es/m/20231223215147.GA69623@nathanxps13
1 parent7e6fb5d commitda083b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/postmaster/walsummarizer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ GetOldestUnsummarizedLSN(TimeLineID *tli, bool *lsn_is_exact,
438438
LWLockModemode=reset_pending_lsn ?LW_EXCLUSIVE :LW_SHARED;
439439
intn;
440440
List*tles;
441-
XLogRecPtrunsummarized_lsn;
441+
XLogRecPtrunsummarized_lsn=InvalidXLogRecPtr;
442442
TimeLineIDunsummarized_tli=0;
443443
boolshould_make_exact= false;
444444
List*existing_summaries;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp