Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0fd2fde

Browse files
committed
Code cleanup. Remove unused pgBackupGetPath() function
1 parent2ae2908 commit0fd2fde

File tree

5 files changed

+1
-15
lines changed

5 files changed

+1
-15
lines changed

‎src/backup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1774,7 +1774,7 @@ pg_stop_backup(pgBackup *backup, PGconn *pg_startbackup_conn,
17741774
if (!exclusive_backup)
17751775
{
17761776
Assert(PQnfields(res) >=4);
1777-
pgBackupGetPath(backup,path,lengthof(path),DATABASE_DIR);
1777+
pgBackupGetPath2(backup,path,lengthof(path),DATABASE_DIR,NULL);
17781778

17791779
/* Write backup_label */
17801780
join_path_components(backup_label,path,PG_BACKUP_LABEL_FILE);

‎src/catalog.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2710,16 +2710,6 @@ pgBackupCompareIdDesc(const void *l, const void *r)
27102710
return-pgBackupCompareId(l,r);
27112711
}
27122712

2713-
/*
2714-
* Construct absolute path of the backup directory.
2715-
* If subdir is not NULL, it will be appended after the path.
2716-
*/
2717-
void
2718-
pgBackupGetPath(constpgBackup*backup,char*path,size_tlen,constchar*subdir)
2719-
{
2720-
pgBackupGetPath2(backup,path,len,subdir,NULL);
2721-
}
2722-
27232713
/*
27242714
* Construct absolute path of the backup directory.
27252715
* Append "subdir1" and "subdir2" to the backup directory.

‎src/dir.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1880,7 +1880,6 @@ read_database_map(pgBackup *backup)
18801880
charpath[MAXPGPATH];
18811881
chardatabase_map_path[MAXPGPATH];
18821882

1883-
//pgBackupGetPath(backup, path, lengthof(path), DATABASE_DIR);
18841883
join_path_components(path,backup->root_dir,DATABASE_DIR);
18851884
join_path_components(database_map_path,path,DATABASE_MAP);
18861885

‎src/pg_probackup.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -944,8 +944,6 @@ extern void pgBackupWriteControl(FILE *out, pgBackup *backup, bool utc);
944944
externvoidwrite_backup_filelist(pgBackup*backup,parray*files,
945945
constchar*root,parray*external_list,boolsync);
946946

947-
externvoidpgBackupGetPath(constpgBackup*backup,char*path,size_tlen,
948-
constchar*subdir);
949947
externvoidpgBackupGetPath2(constpgBackup*backup,char*path,size_tlen,
950948
constchar*subdir1,constchar*subdir2);
951949
externvoidpgBackupCreateDir(pgBackup*backup,constchar*backup_instance_path);

‎src/validate.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ pgBackupValidate(pgBackup *backup, pgRestoreParams *params)
205205
{
206206
charpath[MAXPGPATH];
207207

208-
//pgBackupGetPath(backup, path, lengthof(path), DATABASE_FILE_LIST);
209208
join_path_components(path,backup->root_dir,DATABASE_FILE_LIST);
210209

211210
if (pgFileSize(path) >= (BLCKSZ*500))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp