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

Commitd9c11e4

Browse files
committed
Show removed wal segments without verbose mode.
1 parent9d579bc commitd9c11e4

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

‎delete.c

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ int do_deletewal(time_t backup_id, bool strict)
140140
structdirent*arcde;
141141
charwal_file[MAXPGPATH];
142142
intrc;
143+
inti=0;
143144

144145
XLByteToSeg(oldest_lsn,targetSegNo);
145146
XLogFileName(oldestSegmentNeeded,oldest_tli,targetSegNo);
@@ -185,9 +186,20 @@ int do_deletewal(time_t backup_id, bool strict)
185186
wal_file,strerror(errno));
186187
break;
187188
}
188-
elog(LOG,"removed WAL segment \"%s\"",wal_file);
189+
if (verbose)
190+
elog(LOG,"removed WAL segment \"%s\"",wal_file);
191+
else
192+
{
193+
if (i==0)
194+
elog(NOTICE,"removed WAL segment \"%s\"",wal_file);
195+
196+
}
189197
}
198+
i++;
190199
}
200+
if (!verbose&&i!=0&&errno==0)
201+
elog(NOTICE,"removed WAL segment \"%s\"",wal_file);
202+
191203
if (errno)
192204
elog(WARNING,"could not read archive location \"%s\": %s",
193205
arclog_path,strerror(errno));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp