Skip to content

Commit d37ade9

Browse files
committed
validation should ignore empty and not changed files
1 parent 2ad2af9 commit d37ade9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/validate.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,10 @@ pgBackupValidateFiles(void *arg)
271271
continue;
272272
}
273273

274+
/* no point in trying to open empty or non-changed files */
275+
if (file->write_size <= 0)
276+
continue;
277+
274278
if (stat(file->path, &st) == -1)
275279
{
276280
if (errno == ENOENT)

0 commit comments

Comments
 (0)