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

Commitb48f275

Browse files
committed
pgindent, because I forgot to do that.
Commit065583c should haveincluded these changes.
1 parent716bd12 commitb48f275

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

‎src/backend/postmaster/walsummarizer.c

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -505,10 +505,10 @@ GetOldestUnsummarizedLSN(TimeLineID *tli, bool *lsn_is_exact)
505505
returnInvalidXLogRecPtr;
506506

507507
/*
508-
* If we are not the WAL summarizer process, then we normally just want
509-
*toread the values from shared memory. However, as an exception, if
510-
*sharedmemory hasn't been initialized yet, then we need to do that so
511-
*that wecan read legal values and not remove any WAL too early.
508+
* If we are not the WAL summarizer process, then we normally just want to
509+
* read the values from shared memory. However, as an exception, if shared
510+
* memory hasn't been initialized yet, then we need to do that so that we
511+
* can read legal values and not remove any WAL too early.
512512
*/
513513
if (!am_wal_summarizer)
514514
{
@@ -532,8 +532,8 @@ GetOldestUnsummarizedLSN(TimeLineID *tli, bool *lsn_is_exact)
532532
* Find the oldest timeline on which WAL still exists, and the earliest
533533
* segment for which it exists.
534534
*
535-
* Note that we do this every time the WAL summarizer process restarts
536-
*orrecovers from an error, in case the contents of pg_wal have changed
535+
* Note that we do this every time the WAL summarizer process restarts or
536+
* recovers from an error, in case the contents of pg_wal have changed
537537
* under us e.g. if some files were removed, either manually - which
538538
* shouldn't really happen, but might - or by postgres itself, if
539539
* summarize_wal was turned off and then back on again.
@@ -582,16 +582,15 @@ GetOldestUnsummarizedLSN(TimeLineID *tli, bool *lsn_is_exact)
582582
errmsg_internal("no WAL found on timeline %u",latest_tli));
583583

584584
/*
585-
* If we're the WAL summarizer, we always want to store the values we
586-
*justcomputed into shared memory, because those are the values we're
587-
*goingto use to drive our operation, and so they are the authoritative
585+
* If we're the WAL summarizer, we always want to store the values we just
586+
* computed into shared memory, because those are the values we're going
587+
* to use to drive our operation, and so they are the authoritative
588588
* values. Otherwise, we only store values into shared memory if shared
589589
* memory is uninitialized. Our values are not canonical in such a case,
590-
* but it's better to have something than nothing, to guide WAL
591-
* retention.
590+
* but it's better to have something than nothing, to guide WAL retention.
592591
*/
593592
LWLockAcquire(WALSummarizerLock,LW_EXCLUSIVE);
594-
if (am_wal_summarizer|| !WalSummarizerCtl->initialized)
593+
if (am_wal_summarizer|| !WalSummarizerCtl->initialized)
595594
{
596595
WalSummarizerCtl->initialized= true;
597596
WalSummarizerCtl->summarized_lsn=unsummarized_lsn;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp