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

Commitc2410fc

Browse files
author
Artur Zakirov
committed
Fix WAL validate messages
1 parent8fdbe1e commitc2410fc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎parsexlog.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,12 @@ validate_wal(pgBackup *backup,
164164
all_wal= true;
165165
break;
166166
}
167-
/*Stop if there are no target xid and target time */
167+
/*If there are no target xid and target time */
168168
elseif (!TransactionIdIsValid(target_xid)&&target_time==0&&
169169
xlogreader->ReadRecPtr==backup->stop_lsn)
170170
{
171171
all_wal= true;
172-
break;
172+
/* We don't stop here. We want to get last_xid and last_time */
173173
}
174174

175175
startpoint=InvalidXLogRecPtr;/* continue reading at next record */
@@ -217,13 +217,13 @@ validate_wal(pgBackup *backup,
217217
last_timestamp,last_xid);
218218

219219
if (TransactionIdIsValid(target_xid)&&target_time!=0)
220-
elog(ERROR,"there arenot WAL records to time %s and xid "XID_FMT,
220+
elog(ERROR,"there areno WAL records to time %s and xid "XID_FMT,
221221
target_timestamp,target_xid);
222222
elseif (TransactionIdIsValid(target_xid))
223-
elog(ERROR,"there arenot WAL records to xid "XID_FMT,
223+
elog(ERROR,"there areno WAL records to xid "XID_FMT,
224224
target_xid);
225225
elseif (target_time!=0)
226-
elog(ERROR,"there arenot WAL records to time %s ",
226+
elog(ERROR,"there areno WAL records to time %s ",
227227
target_timestamp);
228228
}
229229
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp