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

Commitdb73f84

Browse files
committed
[Issue#101] Multiple spelling fixes. Reported by Alexander Lakhin
1 parent44923e7 commitdb73f84

33 files changed

+79
-77
lines changed

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ gen_probackup_project.pl C:\path_to_postgresql_source_tree
112112

113113
Currently the latest documentation can be found at[github](https://github.com/postgrespro/pg_probackup/blob/master/Documentation.md) and[Postgres Pro Enterprise documentation](https://postgrespro.com/docs/postgrespro/current/app-pgprobackup).
114114

115-
##Licence
115+
##License
116116

117-
This module available under the[license](LICENSE) similar to[PostgreSQL](https://www.postgresql.org/about/licence/).
117+
This module available under the[license](LICENSE) similar to[PostgreSQL](https://www.postgresql.org/about/license/).
118118

119119
##Feedback
120120

‎gen_probackup_project.pl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
our$currpath;
66

77
BEGIN {
8-
# path to thepg_pprobackup dir
8+
# path to thepg_probackup dir
99
$currpath = File::Basename::dirname(Cwd::abs_path($0));
1010
use Cwd;
1111
use File::Basename;

‎src/backup.c‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
/*
3030
* Macro needed to parse ptrack.
31-
* NOTE Keep those valuessyncronised with definitions in ptrack.h
31+
* NOTE Keep those valuessynchronized with definitions in ptrack.h
3232
*/
3333
#definePTRACK_BITS_PER_HEAPBLOCK 1
3434
#defineHEAPBLOCKS_PER_BYTE (BITS_PER_BYTE / PTRACK_BITS_PER_HEAPBLOCK)
@@ -39,7 +39,7 @@ static XLogRecPtr stop_stream_lsn = InvalidXLogRecPtr;
3939

4040
/*
4141
* How long we should wait for streaming end in seconds.
42-
*Retreived as checkpoint_timeout + checkpoint_timeout * 0.1
42+
*Retrieved as checkpoint_timeout + checkpoint_timeout * 0.1
4343
*/
4444
staticuint32stream_stop_timeout=0;
4545
/* Time in which we started to wait for streaming end */
@@ -451,7 +451,7 @@ do_backup_instance(PGconn *backup_conn, PGNodeInfo *nodeInfo)
451451

452452
/* Run threads */
453453
thread_interrupted= false;
454-
elog(INFO,"Starttransfering data files");
454+
elog(INFO,"Starttransferring data files");
455455
for (i=0;i<num_threads;i++)
456456
{
457457
backup_files_arg*arg=&(threads_args[i]);
@@ -468,7 +468,7 @@ do_backup_instance(PGconn *backup_conn, PGNodeInfo *nodeInfo)
468468
backup_isok= false;
469469
}
470470
if (backup_isok)
471-
elog(INFO,"Data files aretransfered");
471+
elog(INFO,"Data files aretransferred");
472472
else
473473
elog(ERROR,"Data files transferring failed");
474474

@@ -686,7 +686,7 @@ do_backup(time_t start_time, bool no_validate)
686686
/* below perform checks specific for backup command */
687687
#ifPG_VERSION_NUM >=110000
688688
if (!RetrieveWalSegSize(backup_conn))
689-
elog(ERROR,"Failed toretreive wal_segment_size");
689+
elog(ERROR,"Failed toretrieve wal_segment_size");
690690
#endif
691691

692692
is_ptrack_support=pg_ptrack_support(backup_conn);
@@ -1346,7 +1346,7 @@ wait_wal_lsn(XLogRecPtr lsn, bool is_start_lsn, bool wait_prev_segment)
13461346

13471347
tli=get_current_timeline(false);
13481348

1349-
/* Compute the name of the WAL filecontainig requested LSN */
1349+
/* Compute the name of the WAL filecontaining requested LSN */
13501350
GetXLogSegNo(lsn,targetSegNo,instance_config.xlog_seg_size);
13511351
if (wait_prev_segment)
13521352
targetSegNo--;
@@ -1862,7 +1862,7 @@ pg_stop_backup(pgBackup *backup, PGconn *pg_startbackup_conn,
18621862
}
18631863

18641864
/*
1865-
*Retreive checkpoint_timeout GUC value in seconds.
1865+
*Retrieve checkpoint_timeout GUC value in seconds.
18661866
*/
18671867
staticint
18681868
checkpoint_timeout(PGconn*backup_conn)
@@ -2360,7 +2360,7 @@ make_pagemap_from_ptrack(parray *files, PGconn *backup_conn)
23602360
if (ptrack_nonparsed!=NULL)
23612361
{
23622362
/*
2363-
* pg_ptrack_get_and_clear() returns ptrack with VARHDRcutted out.
2363+
* pg_ptrack_get_and_clear() returns ptrack with VARHDRcut out.
23642364
* Compute the beginning of the ptrack map related to this segment
23652365
*
23662366
* HEAPBLOCKS_PER_BYTE. Number of heap pages one ptrack byte can track: 8

‎src/catalog.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ lock_backup(pgBackup *backup)
260260

261261
fio_unlink(lock_file,FIO_BACKUP_HOST);
262262
errno=save_errno;
263-
elog(ERROR,"Culd not write lock file \"%s\": %s",
263+
elog(ERROR,"Could not write lock file \"%s\": %s",
264264
lock_file,strerror(errno));
265265
}
266266

@@ -1022,7 +1022,7 @@ parse_compress_alg(const char *arg)
10221022
len=strlen(arg);
10231023

10241024
if (len==0)
1025-
elog(ERROR,"compressalgrorithm is empty");
1025+
elog(ERROR,"compressalgorithm is empty");
10261026

10271027
if (pg_strncasecmp("zlib",arg,len)==0)
10281028
returnZLIB_COMPRESS;
@@ -1231,7 +1231,7 @@ find_parent_full_backup(pgBackup *current_backup)
12311231
}
12321232

12331233
/*
1234-
*Interate over parent chain and look for any problems.
1234+
*Iterate over parent chain and look for any problems.
12351235
* Return 0 if chain is broken.
12361236
* result_backup must contain oldest existing backup after missing backup.
12371237
* we have no way to know if there are multiple missing backups.
@@ -1262,7 +1262,7 @@ scan_parent_chain(pgBackup *current_backup, pgBackup **result_backup)
12621262
target_backup=target_backup->parent_backup_link;
12631263
}
12641264

1265-
/*Prevous loop will skip FULL backup because his parent_backup_link is NULL */
1265+
/*Previous loop will skip FULL backup because his parent_backup_link is NULL */
12661266
if (target_backup->backup_mode==BACKUP_MODE_FULL&&
12671267
(target_backup->status!=BACKUP_STATUS_OK&&
12681268
target_backup->status!=BACKUP_STATUS_DONE))

‎src/checkdb.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ typedef struct pg_indexEntry
8181
char*name;
8282
char*namespace;
8383
boolheapallindexed_is_supported;
84-
/* schema where amcheckextention is located */
84+
/* schema where amcheckextension is located */
8585
char*amcheck_nspname;
8686
/* lock for synchronization of parallel threads */
8787
volatilepg_atomic_flaglock;
@@ -408,7 +408,7 @@ get_index_list(const char *dbname, bool first_db_with_amcheck,
408408
PQgetvalue(res,0,2),PQgetvalue(res,0,1));
409409

410410
if (!heapallindexed_is_supported&&heapallindexed)
411-
elog(WARNING,"Extension '%s'verion %s in schema '%s'"
411+
elog(WARNING,"Extension '%s'version %s in schema '%s'"
412412
"do not support 'heapallindexed' option",
413413
PQgetvalue(res,0,0),PQgetvalue(res,0,2),
414414
PQgetvalue(res,0,1));

‎src/data.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ page_may_be_compressed(Page page, CompressAlg alg, uint32 backup_version)
159159
return false;
160160
}
161161
#endif
162-
/*otherwize let's try to decompress the page */
162+
/*otherwise let's try to decompress the page */
163163
return true;
164164
}
165165
return false;
@@ -396,7 +396,7 @@ prepare_page(ConnectionArgs *arguments,
396396
{
397397
/*
398398
* We need to copy the page that was successfully
399-
*retreieved from ptrack into our output "page" parameter.
399+
*retrieved from ptrack into our output "page" parameter.
400400
* We must set checksum here, because it is outdated
401401
* in the block recieved from shared buffers.
402402
*/
@@ -482,7 +482,7 @@ compress_and_backup_page(pgFile *file, BlockNumber blknum,
482482
compressed_page,header.compressed_size);
483483
write_buffer_size+=MAXALIGN(header.compressed_size);
484484
}
485-
/*Nonpositive value means that compression failed. Write it as is. */
485+
/*Non-positive value means that compression failed. Write it as is. */
486486
else
487487
{
488488
header.compressed_size=BLCKSZ;
@@ -754,7 +754,7 @@ restore_data_file(const char *to_path, pgFile *file, bool allow_truncate,
754754
DataPagepage;
755755
int32uncompressed_size=0;
756756

757-
/* File didn`t changed.Nothig to copy */
757+
/* File didn`t changed.Nothing to copy */
758758
if (file->write_size==BYTES_INVALID)
759759
break;
760760

@@ -887,7 +887,7 @@ restore_data_file(const char *to_path, pgFile *file, bool allow_truncate,
887887
* DELTA backup have no knowledge about truncated blocks as PAGE or PTRACK do
888888
* But during DELTA backup we read every file in PGDATA and thus DELTA backup
889889
* knows exact size of every file at the time of backup.
890-
* So when restoring file from DELTA backup we,knowning it`s size at
890+
* So when restoring file from DELTA backup we,knowing it`s size at
891891
* a time of a backup, can truncate file to this size.
892892
*/
893893
if (allow_truncate&&file->n_blocks!=BLOCKNUM_INVALID&& !need_truncate)

‎src/delete.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ do_delete(time_t backup_id)
116116
*
117117
* Invalid backups handled in Oracle style, so invalid backups are ignored
118118
* for the purpose of retention fulfillment,
119-
* i.e. CORRUPT full backup do not taken in account whendeteremine
119+
* i.e. CORRUPT full backup do not taken in account whendetermine
120120
* which FULL backup should be keeped for redundancy obligation(only valid do),
121121
* but if invalid backup is not guarded by retention - it is removed
122122
*/
@@ -491,7 +491,7 @@ do_retention_merge(parray *backup_list, parray *to_keep_list, parray *to_purge_l
491491
* 2 PAGE1
492492
* 3 FULL
493493
*
494-
*Сonsequentially merge incremental backups from PAGE1 to PAGE3
494+
*Consequentially merge incremental backups from PAGE1 to PAGE3
495495
* into FULL.
496496
*/
497497

‎src/dir.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,7 @@ create_data_directories(parray *dest_files, const char *data_dir, const char *ba
10751075
}
10761076

10771077
/*
1078-
* Read names ofsymbolik names of tablespaces with links to directories from
1078+
* Read names ofsymbolic names of tablespaces with links to directories from
10791079
* tablespace_map or tablespace_map.txt.
10801080
*/
10811081
void
@@ -1568,7 +1568,7 @@ pgFileSize(const char *path)
15681568
}
15691569

15701570
/*
1571-
* Construct parray containingremmaped external directories paths
1571+
* Construct parray containingremapped external directories paths
15721572
* from string like /path1:/path2
15731573
*/
15741574
parray*

‎src/help.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ help_show(void)
540540
printf(_(" [--format=format]\n\n"));
541541

542542
printf(_(" -B, --backup-path=backup-path location of the backup storage area\n"));
543-
printf(_(" --instance=instance_name show info about specificintstance\n"));
543+
printf(_(" --instance=instance_name show info about specificinstance\n"));
544544
printf(_(" -i, --backup-id=backup-id show info about specific backups\n"));
545545
printf(_(" --format=format show format=PLAIN|JSON\n\n"));
546546
}

‎src/merge.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ merge_backups(pgBackup *to_backup, pgBackup *from_backup)
270270
false);
271271

272272
/*
273-
* Rename externaldirectoties in to_backup (if exists)
273+
* Rename externaldirectories in to_backup (if exists)
274274
* according to numeration of external dirs in from_backup.
275275
*/
276276
if (to_external)
@@ -594,6 +594,8 @@ merge_files(void *arg)
594594
elog(VERBOSE,"Merge target and source files into the temporary path \"%s\"",
595595
merge_to_file_path);
596596

597+
// TODO: truncate merge_to_file_path just in case?
598+
597599
/*
598600
* file->path is relative, to_file_path - is absolute.
599601
* Substitute them.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp