We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5e8a54 commit 7655248Copy full SHA for 7655248
src/backup.c
@@ -1230,7 +1230,8 @@ pg_stop_backup(pgBackup *backup)
1230
if (backup_files_list)
1231
{
1232
file = pgFileNew(tablespace_map, true);
1233
- calc_file_checksum(file);
+ if (S_ISREG(file->mode))
1234
+ calc_file_checksum(file);
1235
free(file->path);
1236
file->path = strdup(PG_TABLESPACE_MAP_FILE);
1237
parray_append(backup_files_list, file);
src/data.c
@@ -997,6 +997,7 @@ calc_file_checksum(pgFile *file)
997
struct stat st;
998
pg_crc32 crc;
999
1000
+ Assert(S_ISREG(file->mode));
1001
INIT_CRC32C(crc);
1002
1003
/* reset size summary */
0 commit comments