summaryrefslogtreecommitdiff
path: root/storage/myisam/mi_check.c
diff options
context:
space:
mode:
authorIan Gilfillan <github@greenman.co.za>2019-09-12 12:09:02 +0200
committerVicențiu Ciorbaru <vicentiu@mariadb.org>2019-09-20 07:21:21 +0300
commit38fa0141eed89613b45906a638be19123ee7e706 (patch)
tree9b65795d7c726eb80b24c7d374f061cc2aa897af /storage/myisam/mi_check.c
parentf541d3f18eec035242303928aa65558a391d165d (diff)
downloadmariadb-git-38fa0141eed89613b45906a638be19123ee7e706.tar.gz
Fix spelling mistakes in MyISAM code comments
Diffstat (limited to 'storage/myisam/mi_check.c')
-rw-r--r--storage/myisam/mi_check.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/storage/myisam/mi_check.c b/storage/myisam/mi_check.c
index 35ec615d99b..f36fffbdd1d 100644
--- a/storage/myisam/mi_check.c
+++ b/storage/myisam/mi_check.c
@@ -288,7 +288,7 @@ static int check_k_link(HA_CHECK *param, register MI_INFO *info, uint nr)
/*
Read the key block with MI_MIN_KEY_BLOCK_LENGTH to find next link.
If the key cache block size is smaller than block_size, we can so
- avoid unecessary eviction of cache block.
+ avoid unnecessary eviction of cache block.
*/
if (!(buff=key_cache_read(info->s->key_cache,
info->s->kfile, next_link, DFLT_INIT_HITS,
@@ -1900,7 +1900,7 @@ int flush_blocks(HA_CHECK *param, KEY_CACHE *key_cache, File file,
} /* flush_blocks */
- /* Sort index for more efficent reads */
+ /* Sort index for more efficient reads */
int mi_sort_index(HA_CHECK *param, register MI_INFO *info, char * name)
{
@@ -3043,13 +3043,13 @@ err:
/*
Destroy the write cache. The master thread did already detach from
the share by remove_io_thread() or it was not yet started (if the
- error happend before creating the thread).
+ error happened before creating the thread).
*/
(void) end_io_cache(&info->rec_cache);
/*
Destroy the new data cache in case of non-quick repair. All slave
threads did either detach from the share by remove_io_thread()
- already or they were not yet started (if the error happend before
+ already or they were not yet started (if the error happened before
creating the threads).
*/
if (!rep_quick && my_b_inited(&new_data_cache))
@@ -4585,7 +4585,7 @@ void update_auto_increment_key(HA_CHECK *param, MI_INFO *info,
keypart_k=c_k for arbitrary constants c_1 ... c_k)
= {assuming that values have uniform distribution and index contains all
- tuples from the domain (or that {c_1, ..., c_k} tuple is choosen from
+ tuples from the domain (or that {c_1, ..., c_k} tuple is chosen from
index tuples}
= #tuples-in-the-index / #distinct-tuples-in-the-index.