Skip to content

Commit ba29f9f

Browse files
committed
fix after merge
1 parent b5ce80c commit ba29f9f

File tree

4 files changed

+14
-15
lines changed

4 files changed

+14
-15
lines changed

src/backup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2223,7 +2223,7 @@ parse_filelist_filenames(parray *files, const char *root)
22232223
if (S_ISREG(file->mode) && file->tblspcOid != 0 &&
22242224
file->name && file->name[0])
22252225
{
2226-
if (file->forkName == INIT)
2226+
if (file->forkName == init)
22272227
{
22282228
/*
22292229
* Do not backup files of unlogged relations.

src/delete.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,6 @@ do_delete_instance(void)
966966
{
967967
parray *backup_list;
968968
int i;
969-
int rc;
970969
char instance_config_path[MAXPGPATH];
971970

972971

src/dir.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -709,22 +709,22 @@ dir_check_file(pgFile *file)
709709
{
710710
/* Auxiliary fork of the relfile */
711711
if (strcmp(fork_name, "vm") == 0)
712-
file->forkName = VM;
712+
file->forkName = vm;
713713

714714
else if (strcmp(fork_name, "fsm") == 0)
715-
file->forkName = FSM;
715+
file->forkName = fsm;
716716

717717
else if (strcmp(fork_name, "cfm") == 0)
718-
file->forkName = CFM;
719-
720-
else if (strcmp(fork_name, "init") == 0)
721-
file->forkName = INIT;
718+
file->forkName = cfm;
722719

723720
else if (strcmp(fork_name, "ptrack") == 0)
724-
file->forkName = PTRACK;
721+
file->forkName = ptrack;
722+
723+
else if (strcmp(fork_name, "init") == 0)
724+
file->forkName = init;
725725

726726
/* Do not backup ptrack files */
727-
if (file->forkName == PTRACK)
727+
if (file->forkName == ptrack)
728728
return CHECK_FALSE;
729729
}
730730
else

src/pg_probackup.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,11 @@ typedef enum CompressAlg
120120

121121
typedef enum ForkName
122122
{
123-
VM,
124-
FSM,
125-
CFM,
126-
INIT,
127-
PTRACK
123+
vm,
124+
fsm,
125+
cfm,
126+
init,
127+
ptrack
128128
} ForkName;
129129

130130
#define INIT_FILE_CRC32(use_crc32c, crc) \

0 commit comments

Comments
 (0)