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

Commitffa63a2

Browse files
committed
Merge branch 'master' into issue_92
2 parentsc069399 +79f940f commitffa63a2

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

‎src/data.c‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ backup_data_file(backup_files_arg* arguments,
585585
}
586586

587587
if (file->size %BLCKSZ!=0)
588-
elog(WARNING,"File:%s, invalid file size %zu",file->path,file->size);
588+
elog(WARNING,"File:\"%s\", invalid file size %zu",file->path,file->size);
589589

590590
/*
591591
* Compute expected number of blocks in the file.
@@ -622,7 +622,7 @@ backup_data_file(backup_files_arg* arguments,
622622
if (rc==PAGE_CHECKSUM_MISMATCH&&is_ptrack_support)
623623
gotoRetryUsingPtrack;
624624
if (rc<0)
625-
elog(ERROR,"Failed to read file%s: %s",
625+
elog(ERROR,"Failed to read file\"%s\": %s",
626626
file->path,rc==PAGE_CHECKSUM_MISMATCH ?"data file checksum mismatch" :strerror(-rc));
627627
n_blocks_read=rc;
628628
}
@@ -1209,10 +1209,7 @@ check_data_file(ConnectionArgs *arguments,
12091209
}
12101210

12111211
if (file->size %BLCKSZ!=0)
1212-
{
1213-
fclose(in);
1214-
elog(WARNING,"File: %s, invalid file size %zu",file->path,file->size);
1215-
}
1212+
elog(WARNING,"File: \"%s\", invalid file size %zu",file->path,file->size);
12161213

12171214
/*
12181215
* Compute expected number of blocks in the file.

‎src/utils/file.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,8 +1150,7 @@ int fio_send_pages(FILE* in, FILE* out, pgFile *file,
11501150

11511151
if ((int)hdr.arg<0)/* read error */
11521152
{
1153-
errno=-(int)hdr.arg;
1154-
return-1;
1153+
return (int)hdr.arg;
11551154
}
11561155

11571156
blknum=hdr.arg;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp