Skip to content

Commit 5f7c2a6

Browse files
qoboodgrooverdan
authored andcommitted
Fix typos in C comments in miscellaneous files
1 parent 5f7e883 commit 5f7c2a6

File tree

100 files changed

+158
-158
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+158
-158
lines changed

client/import_util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ enum class KeyOrConstraintType
2929
};
3030

3131
/**
32-
* Struct representing a table keyor constraint definition
32+
* Struct representing a table key or constraint definition
3333
*/
3434
struct KeyDefinition
3535
{

client/mysql.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1475,7 +1475,7 @@ sig_handler mysql_end(int sig)
14751475
User, password, and database are UTF8 encoded, prior to the function,
14761476
this needs to be fixed, in case they contain non-ASCIIs.
14771477
1478-
Mostly a workaround, to allow existng users with non-ASCII password
1478+
Mostly a workaround, to allow existing users with non-ASCII password
14791479
to survive upgrade without losing connectivity.
14801480
*/
14811481
static void maybe_convert_charset(const char **user, const char **password,
@@ -2415,7 +2415,7 @@ static COMMANDS *find_command(char cmd_char)
24152415

24162416
/*
24172417
In binary-mode, we disallow all client commands except '\C',
2418-
DELIMITER (see long comand finding find_command(char *))
2418+
DELIMITER (see long command finding find_command(char *))
24192419
and '\-' (sandbox, see following comment).
24202420
*/
24212421
if (real_binary_mode)

client/mysqlcheck.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,9 +1080,9 @@ static void __attribute__((noinline)) print_result()
10801080
If the error message includes REPAIR TABLE, we assume it means
10811081
we have to run REPAIR on it. In this case we write a nicer message
10821082
than "Please do "REPAIR TABLE""...
1083-
If the message inclused ALTER TABLE then there is something wrong
1083+
If the message includes ALTER TABLE then there is something wrong
10841084
with the table definition and we have to run ALTER TABLE to fix it.
1085-
Write also a nice error message for this csae.
1085+
Write also a nice error message for this case.
10861086
*/
10871087
if (!strcmp(row[2],"error") && strstr(row[3],"REPAIR "))
10881088
{

client/mysqldump.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4269,7 +4269,7 @@ static void dump_table(const char *table, const char *db, const uchar *hash_key,
42694269

42704270
/*
42714271
Check --skip-events flag: it is not enough to skip creation of events
4272-
discarding SHOW CREATE EVENT statements generation. The myslq.event
4272+
discarding SHOW CREATE EVENT statements generation. The mysql.event
42734273
table data should be skipped too.
42744274
*/
42754275
if (!opt_events && !cmp_database(db, "mysql") &&

client/mysqlimport.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ int table_load_params::load_data(MYSQL *mysql)
785785
if (exec_sql(mysql, "SET TIME_ZONE=@save_tz;"))
786786
DBUG_RETURN(1);
787787
}
788-
/* Restore constrains and triggers */
788+
/* Restore constraints and triggers */
789789
for (const auto &create_trigger_def : triggers)
790790
{
791791
if (exec_sql(mysql, create_trigger_def))

client/mysqltest.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8625,7 +8625,7 @@ void handle_no_error(struct st_command *command)
86258625
86268626
SYNOPSIS
86278627
read_stmt_results
8628-
stmt - prepare statemet
8628+
stmt - prepare statement
86298629
mysql - mysql handle
86308630
command - current command pointer
86318631
ds - output buffer where to store result form query
@@ -9534,7 +9534,7 @@ void run_query(struct st_connection *cn, struct st_command *command, int flags)
95349534
rs_output= &rs_cmp_result;
95359535
}
95369536
else
9537-
rs_output= &ds_res; // will be shown to colsole
9537+
rs_output= &ds_res; // will be shown to console
95389538

95399539
/*
95409540
Log the query into the output buffer

extra/innochecksum.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ open_file(
382382
@param [in,out] buf read the file in buffer
383383
@param [in] partial_page_read enable when to read the
384384
remaining buffer for first page.
385-
@param [in] physical_page_size Physical/Commpressed page size.
385+
@param [in] physical_page_size Physical/Compressed page size.
386386
@param [in,out] fil_in file pointer created for the
387387
tablespace.
388388
@retval no. of bytes read.
@@ -590,7 +590,7 @@ Rewrite the checksum for the page.
590590
591591
@retval true : do rewrite
592592
@retval false : skip the rewrite as checksum stored match with
593-
calculated or page is doublwrite buffer.
593+
calculated or page is doublewrite buffer.
594594
*/
595595
static bool update_checksum(byte* page, uint32_t flags)
596596
{
@@ -1875,7 +1875,7 @@ int main(
18751875
}
18761876

18771877
if (!read_from_stdin) {
1878-
/* flcose() will flush the data and release the lock if
1878+
/* fclose() will flush the data and release the lock if
18791879
any acquired. */
18801880
fclose(fil_in);
18811881
}

extra/mariabackup/aria_backup_client.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class LogFileCollection
8888
Skip all existing log files and find the greatest missing log file.
8989
9090
@param datadir - Search files in this directory
91-
@param start - Start searching from this log number and go downto 1.
91+
@param start - Start searching from this log number and go down to 1.
9292
@param kind - true - search for an existing file
9393
false - search for a missing file.
9494
@returns - [1..start] - the greatest found log file

extra/mariabackup/backup_copy.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ struct datadir_thread_ctxt_t {
147147
};
148148

149149
/************************************************************************
150-
Retirn true if character if file separator */
150+
Return true if character is file separator */
151151
bool
152152
is_path_separator(char c)
153153
{
@@ -1413,7 +1413,7 @@ bool backup_finish(ds_ctxt *ds_data)
14131413

14141414
/*
14151415
Drop all empty database directories in the base backup
1416-
that do not exists in the icremental backup.
1416+
that do not exist in the incremental backup.
14171417
14181418
This effectively re-plays all DROP DATABASE statements happened
14191419
in between base backup and incremental backup creation time.
@@ -2209,7 +2209,7 @@ static void rocksdb_lock_checkpoint()
22092209
MYSQL_ROW r = mysql_fetch_row(res);
22102210
if (r && r[0] && strcmp(r[0], "1"))
22112211
{
2212-
msg("Could not obtain rocksdb checkpont lock.");
2212+
msg("Could not obtain rocksdb checkpoint lock.");
22132213
exit(EXIT_FAILURE);
22142214
}
22152215
mysql_free_result(res);

extra/mariabackup/backup_mysql.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ extern my_bool opt_ssl_verify_server_cert, opt_use_ssl;
101101

102102
/*
103103
get_os_user()
104-
Ressemles read_user_name() from libmariadb/libmariadb/mariadb_lib.c.
104+
Resembles read_user_name() from libmariadb/libmariadb/mariadb_lib.c.
105105
*/
106106

107107
#if !defined(_WIN32)
@@ -1405,7 +1405,7 @@ are used because donor's wsrep_gtid_domain_id is needed later in joiner.
14051405
Note that at this stage wsrep_local_state_uuid and wsrep_last_committed
14061406
are inconsistent but they are not used in joiner. Joiner will rewrite this file
14071407
at mariabackup --prepare phase and thus there is extra file donor_galera_info.
1408-
Information is needed to maitain wsrep_gtid_domain_id and gtid_binlog_pos
1408+
Information is needed to maintain wsrep_gtid_domain_id and gtid_binlog_pos
14091409
same across the cluster. If joiner node have different wsrep_gtid_domain_id
14101410
we should still receive effective domain id from the donor node,
14111411
and use it.

0 commit comments

Comments
 (0)