mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-01-07 13:40:17 +02:00
Fix typo in comments.
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@13 182aca00-e38e-11de-a668-6fd11605f5ce
This commit is contained in:
parent
a90ec8e46f
commit
08063f31f9
12
backup.c
12
backup.c
@ -125,7 +125,7 @@ do_backup_database(parray *backup_list, bool smooth_checkpoint)
|
|||||||
prev_files = dir_read_file_list(pgdata, prev_file_txt);
|
prev_files = dir_read_file_list(pgdata, prev_file_txt);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* we back up only a page updated later than LSN of preview backup.
|
* Do backup only pages having larger LSN than previous backup.
|
||||||
*/
|
*/
|
||||||
lsn = &prev_backup->start_lsn;
|
lsn = &prev_backup->start_lsn;
|
||||||
elog(LOG, _("backup only the page that there was of the update from LSN(%X/%08X).\n"),
|
elog(LOG, _("backup only the page that there was of the update from LSN(%X/%08X).\n"),
|
||||||
@ -186,7 +186,7 @@ do_backup_database(parray *backup_list, bool smooth_checkpoint)
|
|||||||
fclose(fp);
|
fclose(fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* print sumarry of size of backup mode files */
|
/* print summary of size of backup mode files */
|
||||||
for (i = 0; i < parray_num(files); i++)
|
for (i = 0; i < parray_num(files); i++)
|
||||||
{
|
{
|
||||||
pgFile *file = (pgFile *) parray_get(files, i);
|
pgFile *file = (pgFile *) parray_get(files, i);
|
||||||
@ -295,7 +295,7 @@ do_backup_arclog(parray *backup_list)
|
|||||||
fclose(fp);
|
fclose(fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* print sumarry of size of backup files */
|
/* print summary of size of backup files */
|
||||||
for (i = 0; i < parray_num(files); i++)
|
for (i = 0; i < parray_num(files); i++)
|
||||||
{
|
{
|
||||||
pgFile *file = (pgFile *) parray_get(files, i);
|
pgFile *file = (pgFile *) parray_get(files, i);
|
||||||
@ -400,7 +400,7 @@ do_backup_srvlog(parray *backup_list)
|
|||||||
fclose(fp);
|
fclose(fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* print sumarry of size of backup mode files */
|
/* print summary of size of backup mode files */
|
||||||
for (i = 0; i < parray_num(files); i++)
|
for (i = 0; i < parray_num(files); i++)
|
||||||
{
|
{
|
||||||
pgFile *file = (pgFile *) parray_get(files, i);
|
pgFile *file = (pgFile *) parray_get(files, i);
|
||||||
@ -468,7 +468,7 @@ do_backup(bool smooth_checkpoint,
|
|||||||
/* setup cleanup callback function */
|
/* setup cleanup callback function */
|
||||||
in_backup = true;
|
in_backup = true;
|
||||||
|
|
||||||
/* show configuration acutally used */
|
/* show configuration actually used */
|
||||||
if (verbose)
|
if (verbose)
|
||||||
{
|
{
|
||||||
printf(_("========================================\n"));
|
printf(_("========================================\n"));
|
||||||
@ -1075,7 +1075,7 @@ delete_online_wal_backup(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Remove symbolic links point ardchived WAL in backup catalog.
|
* Remove symbolic links point archived WAL in backup catalog.
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
delete_arclog_link(void)
|
delete_arclog_link(void)
|
||||||
|
@ -182,7 +182,7 @@ catalog_get_backup_list(const pgBackupRange *range)
|
|||||||
{
|
{
|
||||||
char ini_path[MAXPGPATH];
|
char ini_path[MAXPGPATH];
|
||||||
|
|
||||||
/* skip not-directry and hidden directories */
|
/* skip not-directory and hidden directories */
|
||||||
if (!IsDir(date_path, date_dir, time_ent) || time_ent->d_name[0] == '.')
|
if (!IsDir(date_path, date_dir, time_ent) || time_ent->d_name[0] == '.')
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
@ -530,7 +530,7 @@ pgBackupFree(void *backup)
|
|||||||
free(backup);
|
free(backup);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Compare two pgBackup with their ID (start time) in ascending order */
|
/* Compare two pgBackup with their IDs (start time) in ascending order */
|
||||||
int
|
int
|
||||||
pgBackupCompareId(const void *l, const void *r)
|
pgBackupCompareId(const void *l, const void *r)
|
||||||
{
|
{
|
||||||
@ -545,7 +545,7 @@ pgBackupCompareId(const void *l, const void *r)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Compare two pgBackup with their ID in descending order */
|
/* Compare two pgBackup with their IDs in descending order */
|
||||||
int
|
int
|
||||||
pgBackupCompareIdDesc(const void *l, const void *r)
|
pgBackupCompareIdDesc(const void *l, const void *r)
|
||||||
{
|
{
|
||||||
|
21
dir.c
21
dir.c
@ -26,7 +26,7 @@ const char *pgdata_exclude[] =
|
|||||||
"pgsql_tmp",
|
"pgsql_tmp",
|
||||||
NULL, /* arclog_path will be set later */
|
NULL, /* arclog_path will be set later */
|
||||||
NULL, /* srvlog_path will be set later */
|
NULL, /* srvlog_path will be set later */
|
||||||
NULL, /* centinel */
|
NULL, /* sentinel */
|
||||||
};
|
};
|
||||||
|
|
||||||
static pgFile *pgFileNew(const char *path, bool omit_symlink);
|
static pgFile *pgFileNew(const char *path, bool omit_symlink);
|
||||||
@ -246,8 +246,8 @@ dir_list_file(parray *files, const char *root, const char *exclude[], bool omit_
|
|||||||
/* chase symbolic link chain and find regular file or directory */
|
/* chase symbolic link chain and find regular file or directory */
|
||||||
while (S_ISLNK(file->mode))
|
while (S_ISLNK(file->mode))
|
||||||
{
|
{
|
||||||
ssize_t len;
|
ssize_t len;
|
||||||
char linked[MAXPGPATH];
|
char linked[MAXPGPATH];
|
||||||
|
|
||||||
len = readlink(file->path, linked, sizeof(linked));
|
len = readlink(file->path, linked, sizeof(linked));
|
||||||
if (len == -1)
|
if (len == -1)
|
||||||
@ -261,9 +261,9 @@ dir_list_file(parray *files, const char *root, const char *exclude[], bool omit_
|
|||||||
/* make absolute path to read linked file */
|
/* make absolute path to read linked file */
|
||||||
if (linked[0] != '/')
|
if (linked[0] != '/')
|
||||||
{
|
{
|
||||||
char dname[MAXPGPATH];
|
char dname[MAXPGPATH];
|
||||||
char *dnamep;
|
char *dnamep;
|
||||||
char absolute[MAXPGPATH];
|
char absolute[MAXPGPATH];
|
||||||
|
|
||||||
strncpy(dname, file->path, lengthof(dname));
|
strncpy(dname, file->path, lengthof(dname));
|
||||||
dnamep = dirname(dname);
|
dnamep = dirname(dname);
|
||||||
@ -273,7 +273,7 @@ dir_list_file(parray *files, const char *root, const char *exclude[], bool omit_
|
|||||||
else
|
else
|
||||||
file = pgFileNew(file->linked, omit_symlink);
|
file = pgFileNew(file->linked, omit_symlink);
|
||||||
|
|
||||||
/* linked file is not found, stop chasing link chain */
|
/* linked file is not found, stop following link chain */
|
||||||
if (file == NULL)
|
if (file == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -301,7 +301,7 @@ dir_list_file(parray *files, const char *root, const char *exclude[], bool omit_
|
|||||||
dirname++;
|
dirname++;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If the item in the exclude list starts with '/', compare to th
|
* If the item in the exclude list starts with '/', compare to the
|
||||||
* absolute path of the directory. Otherwise compare to the directory
|
* absolute path of the directory. Otherwise compare to the directory
|
||||||
* name portion.
|
* name portion.
|
||||||
*/
|
*/
|
||||||
@ -362,7 +362,7 @@ dir_list_file(parray *files, const char *root, const char *exclude[], bool omit_
|
|||||||
}
|
}
|
||||||
closedir(dir);
|
closedir(dir);
|
||||||
|
|
||||||
break; /* psuedo loop */
|
break; /* pseudo loop */
|
||||||
}
|
}
|
||||||
|
|
||||||
parray_qsort(files, pgFileComparePath);
|
parray_qsort(files, pgFileComparePath);
|
||||||
@ -416,7 +416,8 @@ dir_print_file_list(FILE *out, const parray *files, const char *root)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* print each file in the list */
|
/* print each file in the list */
|
||||||
for (i = 0; i < parray_num(files); i++) {
|
for (i = 0; i < parray_num(files); i++)
|
||||||
|
{
|
||||||
pgFile *file = (pgFile *)parray_get(files, i);
|
pgFile *file = (pgFile *)parray_get(files, i);
|
||||||
char *path = file->path;
|
char *path = file->path;
|
||||||
char type;
|
char type;
|
||||||
|
@ -736,7 +736,7 @@ readTimeLineHistory(TimeLineID targetTLI)
|
|||||||
*/
|
*/
|
||||||
while (fd && fgets(fline, sizeof(fline), fd) != NULL)
|
while (fd && fgets(fline, sizeof(fline), fd) != NULL)
|
||||||
{
|
{
|
||||||
/* skip leading whitespace and check for # comment */
|
/* skip leading whitespaces and check for # comment */
|
||||||
char *ptr;
|
char *ptr;
|
||||||
char *endptr;
|
char *endptr;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user