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

Commit425b0a4

Browse files
committed
fix some elog messages
1 parentd72f2d8 commit425b0a4

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

‎src/data.c‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,7 +1212,8 @@ restore_non_data_file(parray *parent_chain, pgBackup *dest_backup,
12121212
{
12131213
/* In case of incremental restore truncate file just to be safe */
12141214
if (already_exists&&fio_ftruncate(out,0))
1215-
elog(ERROR,"Cannot truncate file \"%s\": %s",strerror(errno));
1215+
elog(ERROR,"Cannot truncate file \"%s\": %s",
1216+
to_fullpath,strerror(errno));
12161217
return0;
12171218
}
12181219

@@ -1233,9 +1234,10 @@ restore_non_data_file(parray *parent_chain, pgBackup *dest_backup,
12331234
elog(ERROR,"Failed to locate a full copy of nonedata file \"%s\"",to_fullpath);
12341235

12351236
if (tmp_file->write_size <=0)
1236-
elog(ERROR,"Full copy of nonedata file has invalid size. "
1237+
elog(ERROR,"Full copy of nonedata file has invalid size: %li. "
12371238
"Metadata corruption in backup %s in file: \"%s\"",
1238-
base36enc(tmp_backup->start_time),to_fullpath);
1239+
tmp_file->write_size,base36enc(tmp_backup->start_time),
1240+
to_fullpath);
12391241

12401242
/* incremental restore */
12411243
if (already_exists)
@@ -1245,14 +1247,15 @@ restore_non_data_file(parray *parent_chain, pgBackup *dest_backup,
12451247

12461248
if (file_crc==tmp_file->crc)
12471249
{
1248-
elog(VERBOSE,"Remotenonedata file \"%s\"is unchanged, skip restore",
1250+
elog(VERBOSE,"Already existingnonedata file \"%s\"has the same checksum, skip restore",
12491251
to_fullpath);
12501252
return0;
12511253
}
12521254

12531255
/* Checksum mismatch, truncate file and overwrite it */
12541256
if (fio_ftruncate(out,0))
1255-
elog(ERROR,"Cannot truncate file \"%s\": %s",strerror(errno));
1257+
elog(ERROR,"Cannot truncate file \"%s\": %s",
1258+
to_fullpath,strerror(errno));
12561259
}
12571260

12581261
if (tmp_file->external_dir_num==0)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp