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:
parent
c3cf4d31fa
commit
5c247d0ffa
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user