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
+2 -2
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 */