mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2026-06-21 01:34:15 +02:00
code cleanup
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
* start so they are not included in backups. The directories themselves are
|
||||
* kept and included as empty to preserve access permissions.
|
||||
*/
|
||||
const char *pgdata_exclude_dir[] =
|
||||
static const char *pgdata_exclude_dir[] =
|
||||
{
|
||||
PG_XLOG_DIR,
|
||||
/*
|
||||
|
||||
+1
-1
@@ -104,7 +104,7 @@ bool force = false;
|
||||
bool dry_run = false;
|
||||
static char *delete_status = NULL;
|
||||
/* compression options */
|
||||
bool compress_shortcut = false;
|
||||
static bool compress_shortcut = false;
|
||||
|
||||
/* other options */
|
||||
char *instance_name;
|
||||
|
||||
@@ -672,16 +672,6 @@ typedef struct BackupPageHeader2
|
||||
#define PageIsTruncated -2
|
||||
#define PageIsCorrupted -3 /* used by checkdb */
|
||||
|
||||
|
||||
/*
|
||||
* return pointer that exceeds the length of prefix from character string.
|
||||
* ex. str="/xxx/yyy/zzz", prefix="/xxx/yyy", return="zzz".
|
||||
*
|
||||
* Deprecated. Do not use this in new code.
|
||||
*/
|
||||
#define GetRelativePath(str, prefix) \
|
||||
((strlen(str) <= strlen(prefix)) ? "" : str + strlen(prefix) + 1)
|
||||
|
||||
/*
|
||||
* Return timeline, xlog ID and record offset from an LSN of the type
|
||||
* 0/B000188, usual result from pg_stop_backup() and friends.
|
||||
@@ -789,9 +779,6 @@ extern bool delete_expired;
|
||||
extern bool merge_expired;
|
||||
extern bool dry_run;
|
||||
|
||||
/* compression options */
|
||||
extern bool compress_shortcut;
|
||||
|
||||
/* other options */
|
||||
extern char *instance_name;
|
||||
|
||||
@@ -808,10 +795,6 @@ extern pgBackup current;
|
||||
/* argv of the process */
|
||||
extern char** commands_args;
|
||||
|
||||
/* in dir.c */
|
||||
/* exclude directory list for $PGDATA file listing */
|
||||
extern const char *pgdata_exclude_dir[];
|
||||
|
||||
/* in backup.c */
|
||||
extern int do_backup(pgSetBackupParams *set_backup_params,
|
||||
bool no_validate, bool no_sync, bool backup_logs);
|
||||
|
||||
Reference in New Issue
Block a user