Skip to content

Commit cd6dd02

Browse files
committed
fix a typo in file->size check
1 parent 7837072 commit cd6dd02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

data.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ backup_data_file(const char *from_root, const char *to_root,
195195
stat(file->path, &st);
196196

197197
if (st.st_size != file->size
198-
|| file->read_size % BLCKSZ != 0)
199-
elog(ERROR, "File: %s, file size is incorrect", file->path);
198+
|| file->size % BLCKSZ != 0)
199+
elog(ERROR, "File: %s, file size %lu is incorrect", file->path, file->size);
200200
nblocks = file->size/BLCKSZ;
201201

202202
/* open backup file for write */

0 commit comments

Comments
 (0)