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:
parent
78370729c5
commit
cd6dd02245
4
data.c
4
data.c
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user