Skip to content

Commit 08063f3

Browse files
author
itagaki.takahiro
committed
Fix typo in comments.
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@13 182aca00-e38e-11de-a668-6fd11605f5ce
1 parent a90ec8e commit 08063f3

File tree

4 files changed

+21
-20
lines changed

4 files changed

+21
-20
lines changed

backup.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ do_backup_database(parray *backup_list, bool smooth_checkpoint)
125125
prev_files = dir_read_file_list(pgdata, prev_file_txt);
126126

127127
/*
128-
* we back up only a page updated later than LSN of preview backup.
128+
* Do backup only pages having larger LSN than previous backup.
129129
*/
130130
lsn = &prev_backup->start_lsn;
131131
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)
186186
fclose(fp);
187187
}
188188

189-
/* print sumarry of size of backup mode files */
189+
/* print summary of size of backup mode files */
190190
for (i = 0; i < parray_num(files); i++)
191191
{
192192
pgFile *file = (pgFile *) parray_get(files, i);
@@ -295,7 +295,7 @@ do_backup_arclog(parray *backup_list)
295295
fclose(fp);
296296
}
297297

298-
/* print sumarry of size of backup files */
298+
/* print summary of size of backup files */
299299
for (i = 0; i < parray_num(files); i++)
300300
{
301301
pgFile *file = (pgFile *) parray_get(files, i);
@@ -400,7 +400,7 @@ do_backup_srvlog(parray *backup_list)
400400
fclose(fp);
401401
}
402402

403-
/* print sumarry of size of backup mode files */
403+
/* print summary of size of backup mode files */
404404
for (i = 0; i < parray_num(files); i++)
405405
{
406406
pgFile *file = (pgFile *) parray_get(files, i);
@@ -468,7 +468,7 @@ do_backup(bool smooth_checkpoint,
468468
/* setup cleanup callback function */
469469
in_backup = true;
470470

471-
/* show configuration acutally used */
471+
/* show configuration actually used */
472472
if (verbose)
473473
{
474474
printf(_("========================================\n"));
@@ -1075,7 +1075,7 @@ delete_online_wal_backup(void)
10751075
}
10761076

10771077
/*
1078-
* Remove symbolic links point ardchived WAL in backup catalog.
1078+
* Remove symbolic links point archived WAL in backup catalog.
10791079
*/
10801080
static void
10811081
delete_arclog_link(void)

catalog.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ catalog_get_backup_list(const pgBackupRange *range)
182182
{
183183
char ini_path[MAXPGPATH];
184184

185-
/* skip not-directry and hidden directories */
185+
/* skip not-directory and hidden directories */
186186
if (!IsDir(date_path, date_dir, time_ent) || time_ent->d_name[0] == '.')
187187
continue;
188188

@@ -530,7 +530,7 @@ pgBackupFree(void *backup)
530530
free(backup);
531531
}
532532

533-
/* Compare two pgBackup with their ID (start time) in ascending order */
533+
/* Compare two pgBackup with their IDs (start time) in ascending order */
534534
int
535535
pgBackupCompareId(const void *l, const void *r)
536536
{
@@ -545,7 +545,7 @@ pgBackupCompareId(const void *l, const void *r)
545545
return 0;
546546
}
547547

548-
/* Compare two pgBackup with their ID in descending order */
548+
/* Compare two pgBackup with their IDs in descending order */
549549
int
550550
pgBackupCompareIdDesc(const void *l, const void *r)
551551
{

dir.c

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const char *pgdata_exclude[] =
2626
"pgsql_tmp",
2727
NULL, /* arclog_path will be set later */
2828
NULL, /* srvlog_path will be set later */
29-
NULL, /* centinel */
29+
NULL, /* sentinel */
3030
};
3131

3232
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_
246246
/* chase symbolic link chain and find regular file or directory */
247247
while (S_ISLNK(file->mode))
248248
{
249-
ssize_t len;
250-
char linked[MAXPGPATH];
249+
ssize_t len;
250+
char linked[MAXPGPATH];
251251

252252
len = readlink(file->path, linked, sizeof(linked));
253253
if (len == -1)
@@ -261,9 +261,9 @@ dir_list_file(parray *files, const char *root, const char *exclude[], bool omit_
261261
/* make absolute path to read linked file */
262262
if (linked[0] != '/')
263263
{
264-
char dname[MAXPGPATH];
265-
char *dnamep;
266-
char absolute[MAXPGPATH];
264+
char dname[MAXPGPATH];
265+
char *dnamep;
266+
char absolute[MAXPGPATH];
267267

268268
strncpy(dname, file->path, lengthof(dname));
269269
dnamep = dirname(dname);
@@ -273,7 +273,7 @@ dir_list_file(parray *files, const char *root, const char *exclude[], bool omit_
273273
else
274274
file = pgFileNew(file->linked, omit_symlink);
275275

276-
/* linked file is not found, stop chasing link chain */
276+
/* linked file is not found, stop following link chain */
277277
if (file == NULL)
278278
return;
279279

@@ -301,7 +301,7 @@ dir_list_file(parray *files, const char *root, const char *exclude[], bool omit_
301301
dirname++;
302302

303303
/*
304-
* If the item in the exclude list starts with '/', compare to th
304+
* If the item in the exclude list starts with '/', compare to the
305305
* absolute path of the directory. Otherwise compare to the directory
306306
* name portion.
307307
*/
@@ -362,7 +362,7 @@ dir_list_file(parray *files, const char *root, const char *exclude[], bool omit_
362362
}
363363
closedir(dir);
364364

365-
break; /* psuedo loop */
365+
break; /* pseudo loop */
366366
}
367367

368368
parray_qsort(files, pgFileComparePath);
@@ -416,7 +416,8 @@ dir_print_file_list(FILE *out, const parray *files, const char *root)
416416
}
417417

418418
/* print each file in the list */
419-
for (i = 0; i < parray_num(files); i++) {
419+
for (i = 0; i < parray_num(files); i++)
420+
{
420421
pgFile *file = (pgFile *)parray_get(files, i);
421422
char *path = file->path;
422423
char type;

restore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ readTimeLineHistory(TimeLineID targetTLI)
736736
*/
737737
while (fd && fgets(fline, sizeof(fline), fd) != NULL)
738738
{
739-
/* skip leading whitespace and check for # comment */
739+
/* skip leading whitespaces and check for # comment */
740740
char *ptr;
741741
char *endptr;
742742

0 commit comments

Comments
 (0)