1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-01-05 13:20:31 +02:00

treat snap files as not datafiles.

fix a typo in snapfs.py
This commit is contained in:
Anastasia 2019-02-11 18:14:31 +03:00
parent c3cf4d31fa
commit 5c247d0ffa
2 changed files with 9 additions and 1 deletions

View File

@ -630,6 +630,14 @@ dir_check_file(const char *root, pgFile *file)
}
else
{
/*
* snapfs files:
* RELFILENODE.BLOCKNO.snapmap.SNAPID
* RELFILENODE.BLOCKNO.snap.SNAPID
*/
if (strstr(file->name, "snap") != NULL)
return true;
len = strlen(file->name);
/* reloid.cfm */
if (len > 3 && strcmp(file->name + len - 3, "cfm") == 0)

View File

@ -42,7 +42,7 @@ class SnapFSTest(ProbackupTest, unittest.TestCase):
node.safe_psql(
'postgres',
'select pg_remove_snashot(1)')
'select pg_remove_snapshot(1)')
self.backup_node(
backup_dir, 'node', node)