mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-01-07 13:40:17 +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
|
else
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
|
* snapfs files:
|
||||||
|
* RELFILENODE.BLOCKNO.snapmap.SNAPID
|
||||||
|
* RELFILENODE.BLOCKNO.snap.SNAPID
|
||||||
|
*/
|
||||||
|
if (strstr(file->name, "snap") != NULL)
|
||||||
|
return true;
|
||||||
|
|
||||||
len = strlen(file->name);
|
len = strlen(file->name);
|
||||||
/* reloid.cfm */
|
/* reloid.cfm */
|
||||||
if (len > 3 && strcmp(file->name + len - 3, "cfm") == 0)
|
if (len > 3 && strcmp(file->name + len - 3, "cfm") == 0)
|
||||||
|
@ -42,7 +42,7 @@ class SnapFSTest(ProbackupTest, unittest.TestCase):
|
|||||||
|
|
||||||
node.safe_psql(
|
node.safe_psql(
|
||||||
'postgres',
|
'postgres',
|
||||||
'select pg_remove_snashot(1)')
|
'select pg_remove_snapshot(1)')
|
||||||
|
|
||||||
self.backup_node(
|
self.backup_node(
|
||||||
backup_dir, 'node', node)
|
backup_dir, 'node', node)
|
||||||
|
Loading…
Reference in New Issue
Block a user