Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 9454066

Browse files
author
Artur Zakirov
committed
Fix validation messages
1 parent 20e5505 commit 9454066

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
@@ -186,7 +186,7 @@ validate_wal(pgBackup *backup,
186186

187187
/* There are all need WAL records */
188188
if (all_wal)
189-
elog(INFO, "backup validation stopped on time %s and xid " XID_FMT,
189+
elog(INFO, "backup validation completed successfully on time %s and xid " XID_FMT,
190190
last_timestamp, last_xid);
191191
/* There are not need WAL records */
192192
else
@@ -213,17 +213,17 @@ validate_wal(pgBackup *backup,
213213
time2iso(target_timestamp, lengthof(target_timestamp),
214214
target_time);
215215

216-
elog(WARNING, "recovery can be done to time %s and xid " XID_FMT,
216+
elog(WARNING, "recovery can be done up to time %s and xid " XID_FMT,
217217
last_timestamp, last_xid);
218218

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

0 commit comments

Comments
 (0)