8000 treat snap files as not datafiles. · postgrespro/pg_probackup@5c247d0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5c247d0

Browse files
committed
treat snap files as not datafiles.
fix a typo in snapfs.py
1 parent c3cf4d3 commit 5c247d0

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/dir.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,14 @@ dir_check_file(const char *root, pgFile *file)
630630
}
631631
else
632632
{
633+
/*
634+
* snapfs files:
635+
* RELFILENODE.BLOCKNO.snapmap.SNAPID
636+
* RELFILENODE.BLOCKNO.snap.SNAPID
637+
*/
638+
if (strstr(file->name, "snap") != NULL)
639+
return true;
640+
633641
len = strlen(file->name);
634642
/* reloid.cfm */
635643
if (len > 3 && strcmp(file->name + len - 3, "cfm") == 0)

tests/snapfs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def test_backup_modes_archive(self):
4242

4343
node.safe_psql(
4444
'postgres',
45-
'select pg_remove_snashot(1)')
45+
'select pg_remove_snapshot(1)')
4646

4747
self.backup_node(
4848
backup_dir, 'node', node)

0 commit comments

Comments
 (0)
0