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

Commit08063f3

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 parenta90ec8e commit08063f3

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 uponlya page updated later thanLSN of preview backup.
128+
*Do backuponlypages having larger LSN thanprevious 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-
/* printsumarry of size of backup mode files */
189+
/* printsummary 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-
/* printsumarry of size of backup files */
298+
/* printsummary 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-
/* printsumarry of size of backup mode files */
403+
/* printsummary 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 configurationacutally used */
471+
/* show configurationactually used */
472472
if (verbose)
473473
{
474474
printf(_("========================================\n"));
@@ -1075,7 +1075,7 @@ delete_online_wal_backup(void)
10751075
}
10761076

10771077
/*
1078-
* Remove symbolic links pointardchived WAL in backup catalog.
1078+
* Remove symbolic links pointarchived WAL in backup catalog.
10791079
*/
10801080
staticvoid
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
charini_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 theirID (start time) in ascending order */
533+
/* Compare two pgBackup with theirIDs (start time) in ascending order */
534534
int
535535
pgBackupCompareId(constvoid*l,constvoid*r)
536536
{
@@ -545,7 +545,7 @@ pgBackupCompareId(const void *l, const void *r)
545545
return0;
546546
}
547547

548-
/* Compare two pgBackup with theirID in descending order */
548+
/* Compare two pgBackup with theirIDs in descending order */
549549
int
550550
pgBackupCompareIdDesc(constvoid*l,constvoid*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
staticpgFile*pgFileNew(constchar*path,boolomit_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_tlen;
250-
charlinked[MAXPGPATH];
249+
ssize_tlen;
250+
charlinked[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-
chardname[MAXPGPATH];
265-
char*dnamep;
266-
charabsolute[MAXPGPATH];
264+
chardname[MAXPGPATH];
265+
char*dnamep;
266+
charabsolute[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, stopchasing link chain */
276+
/* linked file is not found, stopfollowing 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 toth
304+
* If the item in the exclude list starts with '/', compare tothe
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
chartype;

‎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 leadingwhitespace and check for # comment */
739+
/* skip leadingwhitespaces and check for # comment */
740740
char*ptr;
741741
char*endptr;
742742

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp