1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2024-11-28 09:33:54 +02:00

fix a typo in file->size check

This commit is contained in:
Anastasia 2017-02-13 17:33:05 +03:00
parent 78370729c5
commit cd6dd02245

4
data.c
View File

@ -195,8 +195,8 @@ backup_data_file(const char *from_root, const char *to_root,
stat(file->path, &st);
if (st.st_size != file->size
|| file->read_size % BLCKSZ != 0)
elog(ERROR, "File: %s, file size is incorrect", file->path);
|| file->size % BLCKSZ != 0)
elog(ERROR, "File: %s, file size %lu is incorrect", file->path, file->size);
nblocks = file->size/BLCKSZ;
/* open backup file for write */