summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2023-01-04 14:52:25 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2023-01-04 14:52:25 +0200
commit8356fb68c366b7f515f9060d964ee598653756a6 (patch)
tree310d7419ad32f74ad29b3da87dd1a21ab4d39dd7 /include
parentb5a54e8a9305885e2850d6dabde08ad369094ff3 (diff)
parentfe38d7cad4fab33beba90eefaea9e9d4aef06a7c (diff)
downloadmariadb-git-8356fb68c366b7f515f9060d964ee598653756a6.tar.gz
Merge 10.6 into 10.7
Diffstat (limited to 'include')
-rw-r--r--include/CMakeLists.txt1
-rw-r--r--include/heap.h6
-rw-r--r--include/json_lib.h4
-rw-r--r--include/m_ctype.h8
-rw-r--r--include/ma_dyncol.h2
-rw-r--r--include/my_base.h12
-rw-r--r--include/my_compare.h2
-rw-r--r--include/my_decimal_limits.h2
-rw-r--r--include/my_dir.h2
-rw-r--r--include/my_global.h4
-rw-r--r--include/my_rdtsc.h2
-rw-r--r--include/my_sys.h6
-rw-r--r--include/myisam.h4
-rw-r--r--include/myisammrg.h4
-rw-r--r--include/mysql.h2
-rw-r--r--include/mysql/plugin_ftparser.h2
-rw-r--r--include/mysql/psi/mysql_thread.h2
-rw-r--r--include/mysql/psi/psi.h2
-rw-r--r--include/mysql/service_base64.h2
-rw-r--r--include/mysql/service_my_snprintf.h2
-rw-r--r--include/mysql/service_thd_timezone.h2
-rw-r--r--include/queues.h2
-rw-r--r--include/waiting_threads.h2
23 files changed, 39 insertions, 38 deletions
diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt
index 7076d2d88d2..e094a7b7a0c 100644
--- a/include/CMakeLists.txt
+++ b/include/CMakeLists.txt
@@ -25,6 +25,7 @@ SET(HEADERS
mysql.h
mysql_com.h
mysql_com_server.h
+ mariadb_capi_rename.h
pack.h
my_byteorder.h
byte_order_generic.h
diff --git a/include/heap.h b/include/heap.h
index f0ac527976c..2e0e9357a3b 100644
--- a/include/heap.h
+++ b/include/heap.h
@@ -33,12 +33,12 @@ extern "C" {
#include "my_compare.h"
#include "my_tree.h"
- /* defines used by heap-funktions */
+ /* defines used by heap-functions */
#define HP_MAX_LEVELS 4 /* 128^5 records is enough */
#define HP_PTRS_IN_NOD 128
- /* struct used with heap_funktions */
+ /* struct used with heap_functions */
typedef struct st_heapinfo /* Struct from heap_info */
{
@@ -107,7 +107,7 @@ typedef struct st_heap_block
ulong last_allocated; /* number of records there is allocated space for */
} HP_BLOCK;
-struct st_heap_info; /* For referense */
+struct st_heap_info; /* For reference */
typedef struct st_hp_keydef /* Key definition with open */
{
diff --git a/include/json_lib.h b/include/json_lib.h
index ea7f102fd02..b972b21b9e8 100644
--- a/include/json_lib.h
+++ b/include/json_lib.h
@@ -375,7 +375,7 @@ int json_find_paths_next(json_engine_t *je, json_find_paths_t *state);
/*
- Converst JSON string constant into ordinary string constant
+ Convert JSON string constant into ordinary string constant
which can involve unpacking json escapes and changing character set.
Returns negative integer in the case of an error,
the length of the result otherwise.
@@ -386,7 +386,7 @@ int json_unescape(CHARSET_INFO *json_cs,
uchar *res, uchar *res_end);
/*
- Converst ordinary string constant into JSON string constant.
+ Convert ordinary string constant into JSON string constant.
which can involve appropriate escaping and changing character set.
Returns negative integer in the case of an error,
the length of the result otherwise.
diff --git a/include/m_ctype.h b/include/m_ctype.h
index 4a231caeda9..cd248ce416c 100644
--- a/include/m_ctype.h
+++ b/include/m_ctype.h
@@ -15,7 +15,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */
/*
- A better inplementation of the UNIX ctype(3) library.
+ A better implementation of the UNIX ctype(3) library.
*/
#ifndef _m_ctype_h
@@ -139,7 +139,7 @@ uint16 *my_uca_contraction2_weight(const MY_CONTRACTIONS *c,
my_wc_t wc1, my_wc_t wc2);
-/* Collation weights on a single level (e.g. primary, secondary, tertiarty) */
+/* Collation weights on a single level (e.g. primary, secondary, tertiary) */
typedef struct my_uca_level_info_st
{
my_wc_t maxchar;
@@ -1552,7 +1552,7 @@ uint32 my_convert(char *to, uint32 to_length, CHARSET_INFO *to_cs,
An extended version of my_convert(), to pass non-default mb_wc() and wc_mb().
For example, String::copy_printable() which is used in
Protocol::store_warning() uses this to escape control
- and non-convertable characters.
+ and non-convertible characters.
*/
uint32 my_convert_using_func(char *to, size_t to_length, CHARSET_INFO *to_cs,
my_charset_conv_wc_mb mb_wc,
@@ -1633,7 +1633,7 @@ size_t my_convert_fix(CHARSET_INFO *dstcs, char *dst, size_t dst_length,
@param str - the beginning of the string
@param end - the string end (the next byte after the string)
@return >0, for a multi-byte character
- @rerurn 0, for a single byte character, broken sequence, empty string.
+ @return 0, for a single byte character, broken sequence, empty string.
*/
static inline
uint my_ismbchar(CHARSET_INFO *cs, const char *str, const char *end)
diff --git a/include/ma_dyncol.h b/include/ma_dyncol.h
index 833a25b937e..f697c90707f 100644
--- a/include/ma_dyncol.h
+++ b/include/ma_dyncol.h
@@ -78,7 +78,7 @@ enum enum_dyncol_func_result
ER_DYNCOL_YES= 1, /* For functions returning 0/1 */
ER_DYNCOL_FORMAT= -1, /* Wrong format of the encoded string */
ER_DYNCOL_LIMIT= -2, /* Some limit reached */
- ER_DYNCOL_RESOURCE= -3, /* Out of resourses */
+ ER_DYNCOL_RESOURCE= -3, /* Out of resources */
ER_DYNCOL_DATA= -4, /* Incorrect input data */
ER_DYNCOL_UNKNOWN_CHARSET= -5, /* Unknown character set */
ER_DYNCOL_TRUNCATED= 2 /* OK, but data was truncated */
diff --git a/include/my_base.h b/include/my_base.h
index 30dbec2e6ab..026e4bf347b 100644
--- a/include/my_base.h
+++ b/include/my_base.h
@@ -130,7 +130,7 @@ enum ha_extra_function {
HA_EXTRA_NO_USER_CHANGE=9, /* No user is allowed to write */
HA_EXTRA_KEY_CACHE=10,
HA_EXTRA_NO_KEY_CACHE=11,
- HA_EXTRA_WAIT_LOCK=12, /* Wait until file is avalably (def) */
+ HA_EXTRA_WAIT_LOCK=12, /* Wait until file is available (def) */
HA_EXTRA_NO_WAIT_LOCK=13, /* If file is locked, return quickly */
HA_EXTRA_WRITE_CACHE=14, /* Use write cache in ha_write() */
HA_EXTRA_FLUSH_CACHE=15, /* flush write_record_cache */
@@ -293,7 +293,7 @@ enum ha_base_keytype {
This flag can be calculated -- it's based on key lengths comparison.
*/
#define HA_KEY_HAS_PART_KEY_SEG 65536
-/* Internal Flag Can be calcaluted */
+/* Internal Flag Can be calculated */
#define HA_INVISIBLE_KEY 2<<18
/* Automatic bits in key-flag */
@@ -440,9 +440,9 @@ enum ha_base_keytype {
#define HA_ERR_FIRST 120 /* Copy of first error nr.*/
#define HA_ERR_KEY_NOT_FOUND 120 /* Didn't find key on read or update */
-#define HA_ERR_FOUND_DUPP_KEY 121 /* Dupplicate key on write */
+#define HA_ERR_FOUND_DUPP_KEY 121 /* Duplicate key on write */
#define HA_ERR_INTERNAL_ERROR 122 /* Internal error */
-#define HA_ERR_RECORD_CHANGED 123 /* Uppdate with is recoverable */
+#define HA_ERR_RECORD_CHANGED 123 /* Update with is recoverable */
#define HA_ERR_WRONG_INDEX 124 /* Wrong index given to function */
#define HA_ERR_CRASHED 126 /* Indexfile is crashed */
#define HA_ERR_WRONG_IN_RECORD 127 /* Record-file is crashed */
@@ -458,7 +458,7 @@ enum ha_base_keytype {
#define HA_ERR_UNSUPPORTED 138 /* unsupported extension used */
#define HA_ERR_TO_BIG_ROW 139 /* Too big row */
#define HA_WRONG_CREATE_OPTION 140 /* Wrong create option */
-#define HA_ERR_FOUND_DUPP_UNIQUE 141 /* Dupplicate unique on write */
+#define HA_ERR_FOUND_DUPP_UNIQUE 141 /* Duplicate unique on write */
#define HA_ERR_UNKNOWN_CHARSET 142 /* Can't open charset */
#define HA_ERR_WRONG_MRG_TABLE_DEF 143 /* conflicting tables in MERGE */
#define HA_ERR_CRASHED_ON_REPAIR 144 /* Last (automatic?) repair failed */
@@ -502,7 +502,7 @@ enum ha_base_keytype {
illegal data being read */
#define HA_ERR_NEW_FILE 172 /* New file format */
#define HA_ERR_ROWS_EVENT_APPLY 173 /* The event could not be processed
- no other hanlder error happened */
+ no other handler error happened */
#define HA_ERR_INITIALIZATION 174 /* Error during initialization */
#define HA_ERR_FILE_TOO_SHORT 175 /* File too short */
#define HA_ERR_WRONG_CRC 176 /* Wrong CRC on page */
diff --git a/include/my_compare.h b/include/my_compare.h
index f936bbe6b0c..c2cb9ae46b9 100644
--- a/include/my_compare.h
+++ b/include/my_compare.h
@@ -132,7 +132,7 @@ extern HA_KEYSEG *ha_find_null(HA_KEYSEG *keyseg, const uchar *a);
0=CHECK_NEG - The filter is not satisfied. The engine should discard this
index tuple and continue the scan.
- 1=CHECK_POS - The filter is statisfied. Current index tuple should be
+ 1=CHECK_POS - The filter is satisfied. Current index tuple should be
returned to the SQL layer.
2=CHECK_OUT_OF_RANGE - the index tuple is outside of the range that we're
scanning. (Example: if we're scanning "t.key BETWEEN 10 AND
diff --git a/include/my_decimal_limits.h b/include/my_decimal_limits.h
index ac1df83bb62..5bfd54d6748 100644
--- a/include/my_decimal_limits.h
+++ b/include/my_decimal_limits.h
@@ -32,7 +32,7 @@
digits in one our big digit decreased by 1 (because we always put decimal
point on the border of our big digits))
- With normal precession we can handle 65 digits. MariaDB can store in
+ With normal precision we can handle 65 digits. MariaDB can store in
the .frm up to 63 digits. By default we use DECIMAL_NOT_SPECIFIED digits
when converting strings to decimal, so we don't want to set this too high.
To not use up all digits for the scale we limit the number of decimals to
diff --git a/include/my_dir.h b/include/my_dir.h
index 12cf5db149d..ecd37b2925b 100644
--- a/include/my_dir.h
+++ b/include/my_dir.h
@@ -70,7 +70,7 @@ typedef struct my_stat
dev_t st_rdev; /* more major & minor device numbers (???) */
off_t st_size; /* size of file */
time_t st_atime; /* time for last read */
- time_t st_mtime; /* time for last contens modify */
+ time_t st_mtime; /* time for last contents modify */
time_t st_ctime; /* time for last inode or contents modify */
} MY_STAT;
diff --git a/include/my_global.h b/include/my_global.h
index ac972c1b49e..2789ecc0bd0 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -634,7 +634,7 @@ typedef SOCKET_SIZE_TYPE size_socket;
the mismatch of CRT and mysys file IO usage on Windows at runtime.
CRT file descriptors can be in the range 0-2047, whereas descriptors returned
by my_open() will start with 2048. If a file descriptor with value less then
- MY_FILE_MIN is passed to mysys IO function, chances are it stemms from
+ MY_FILE_MIN is passed to mysys IO function, chances are it stems from
open()/fileno() and not my_open()/my_fileno.
For Posix, mysys functions are light wrappers around libc, and MY_FILE_MIN
@@ -857,7 +857,7 @@ typedef long long my_ptrdiff_t;
#define STDCALL
#endif
-/* Typdefs for easyier portability */
+/* Typdefs for easier portability */
#ifndef HAVE_UCHAR
typedef unsigned char uchar; /* Short for unsigned char */
diff --git a/include/my_rdtsc.h b/include/my_rdtsc.h
index 5a6f4a87012..e8db3b20366 100644
--- a/include/my_rdtsc.h
+++ b/include/my_rdtsc.h
@@ -90,7 +90,7 @@ C_MODE_START
how to ensure that it can be accessed.
On AARCH64, we use the generic timer base register. We override clang
implementation for aarch64 as it access a PMU register which is not
- guarenteed to be active.
+ guaranteed to be active.
Sadly, we have nothing for the Digital Alpha, MIPS, Motorola m68k,
HP PA-RISC or other non-mainstream (or obsolete) processors.
diff --git a/include/my_sys.h b/include/my_sys.h
index 0f49077b6d0..36db7b0e064 100644
--- a/include/my_sys.h
+++ b/include/my_sys.h
@@ -437,7 +437,7 @@ typedef struct st_io_cache /* Used when caching files */
/*
A caller will use my_b_read() macro to read from the cache
if the data is already in cache, it will be simply copied with
- memcpy() and internal variables will be accordinging updated with
+ memcpy() and internal variables will be accordingly updated with
no functions invoked. However, if the data is not fully in the cache,
my_b_read() will call read_function to fetch the data. read_function
must never be invoked directly.
@@ -481,7 +481,7 @@ typedef struct st_io_cache /* Used when caching files */
myf myflags; /* Flags used to my_read/my_write */
/*
alloced_buffer is set to the size of the buffer allocated for the IO_CACHE.
- Includes the overhead(storing key to ecnrypt and decrypt) for encryption.
+ Includes the overhead(storing key to encrypt and decrypt) for encryption.
Set to 0 if nothing is allocated.
Currently READ_NET is the only one that will use a buffer allocated
somewhere else
@@ -998,7 +998,7 @@ static inline my_hrtime_t make_hr_time(my_time_t time, ulong time_sec_part)
#define my_munmap(a,b) munmap((a),(b))
#else
-/* not a complete set of mmap() flags, but only those that nesessary */
+/* not a complete set of mmap() flags, but only those that necessary */
#define PROT_READ 1
#define PROT_WRITE 2
#define MAP_NORESERVE 0
diff --git a/include/myisam.h b/include/myisam.h
index 0942584e874..c90026bfc7a 100644
--- a/include/myisam.h
+++ b/include/myisam.h
@@ -15,7 +15,7 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */
-/* This file should be included when using myisam_funktions */
+/* This file should be included when using myisam_functions */
#ifndef _myisam_h
#define _myisam_h
@@ -159,7 +159,7 @@ typedef struct st_mi_create_info
my_bool with_auto_increment;
} MI_CREATE_INFO;
-struct st_myisam_info; /* For referense */
+struct st_myisam_info; /* For reference */
struct st_mi_isam_share;
typedef struct st_myisam_info MI_INFO;
struct st_mi_s_param;
diff --git a/include/myisammrg.h b/include/myisammrg.h
index 78e7ac00e8f..1d7efbe74d6 100644
--- a/include/myisammrg.h
+++ b/include/myisammrg.h
@@ -14,7 +14,7 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */
-/* This file should be included when using merge_isam_funktions */
+/* This file should be included when using merge_isam_functions */
#ifndef _myisammrg_h
#define _myisammrg_h
@@ -51,7 +51,7 @@ typedef struct st_mymerge_info /* Struct from h_info */
ulonglong data_file_length;
ulonglong dupp_key_pos; /* Offset of the Duplicate key in the merge table */
uint reclength; /* Recordlength */
- int errkey; /* With key was dupplicated on err */
+ int errkey; /* With key was duplicated on err */
uint options; /* HA_OPTION_... used */
ulong *rec_per_key; /* for sql optimizing */
} MYMERGE_INFO;
diff --git a/include/mysql.h b/include/mysql.h
index 46ddc4b9ed9..a66dcc7bd02 100644
--- a/include/mysql.h
+++ b/include/mysql.h
@@ -666,7 +666,7 @@ enum enum_mysql_stmt_state
length - On input: in case when lengths of input values
are different for each execute, you can set this to
- point at a variable containining value length. This
+ point at a variable containing value length. This
way the value length can be different in each execute.
If length is not NULL, buffer_length is not used.
Note, length can even point at buffer_length if
diff --git a/include/mysql/plugin_ftparser.h b/include/mysql/plugin_ftparser.h
index 8db8712926f..511b34bb234 100644
--- a/include/mysql/plugin_ftparser.h
+++ b/include/mysql/plugin_ftparser.h
@@ -101,7 +101,7 @@ enum enum_ft_token_type
<0 Must not be present
0 Neither; the word is optional but its presence increases the relevance
With the default settings of the ft_boolean_syntax system variable,
- >0 corresponds to the '+' operator, <0 corrresponds to the '-' operator,
+ >0 corresponds to the '+' operator, <0 corresponds to the '-' operator,
and 0 means neither operator was used.
weight_adjust: A weighting factor that determines how much a match
diff --git a/include/mysql/psi/mysql_thread.h b/include/mysql/psi/mysql_thread.h
index b6247af65f3..697c23ae423 100644
--- a/include/mysql/psi/mysql_thread.h
+++ b/include/mysql/psi/mysql_thread.h
@@ -625,7 +625,7 @@ typedef struct st_mysql_cond mysql_cond_t;
This function creates both the thread instrumentation and a thread.
@c mysql_thread_create is a replacement for @c pthread_create.
The parameter P4 (or, if it is NULL, P1) will be used as the
- instrumented thread "indentity".
+ instrumented thread "identity".
Providing a P1 / P4 parameter with a different value for each call
will on average improve performances, since this thread identity value
is used internally to randomize access to data and prevent contention.
diff --git a/include/mysql/psi/psi.h b/include/mysql/psi/psi.h
index 4c3e2c6a9c4..9b02961749d 100644
--- a/include/mysql/psi/psi.h
+++ b/include/mysql/psi/psi.h
@@ -2384,7 +2384,7 @@ typedef void (*execute_prepared_stmt_v1_t)
(PSI_statement_locker *locker, PSI_prepared_stmt* prepared_stmt);
/**
- Set the statement text for a prepared statment event.
+ Set the statement text for a prepared statement event.
@param prepared_stmt prepared statement.
@param text the prepared statement text
@param text_len the prepared statement text length
diff --git a/include/mysql/service_base64.h b/include/mysql/service_base64.h
index 43b5ba323ba..fa54b4923d4 100644
--- a/include/mysql/service_base64.h
+++ b/include/mysql/service_base64.h
@@ -29,7 +29,7 @@ extern "C" {
#include <stdlib.h>
#endif
-/* Allow multuple chunks 'AAA= AA== AA==', binlog uses this */
+/* Allow multiple chunks 'AAA= AA== AA==', binlog uses this */
#define MY_BASE64_DECODE_ALLOW_MULTIPLE_CHUNKS 1
extern struct base64_service_st {
diff --git a/include/mysql/service_my_snprintf.h b/include/mysql/service_my_snprintf.h
index 6757a658fb6..fcc832fc1f1 100644
--- a/include/mysql/service_my_snprintf.h
+++ b/include/mysql/service_my_snprintf.h
@@ -40,7 +40,7 @@
@post
The syntax of a format string is generally the same:
% <flag> <width> <precision> <length modifier> <format>
- where everithing but the format is optional.
+ where everything but the format is optional.
Three one-character flags are recognized:
'0' has the standard zero-padding semantics;
diff --git a/include/mysql/service_thd_timezone.h b/include/mysql/service_thd_timezone.h
index 89e75274cf0..667137745f4 100644
--- a/include/mysql/service_thd_timezone.h
+++ b/include/mysql/service_thd_timezone.h
@@ -16,7 +16,7 @@
/**
@file
- This service provdes functions to convert between my_time_t and
+ This service provides functions to convert between my_time_t and
MYSQL_TIME taking into account the current value of the time_zone
session variable.
diff --git a/include/queues.h b/include/queues.h
index e9948857dde..9cc7c15a980 100644
--- a/include/queues.h
+++ b/include/queues.h
@@ -24,7 +24,7 @@
*/
/*
- Code for generell handling of priority Queues.
+ Code for general handling of priority Queues.
Implementation of queues from "Algorithms in C" by Robert Sedgewick.
*/
diff --git a/include/waiting_threads.h b/include/waiting_threads.h
index f785cc8988b..5f708f42f96 100644
--- a/include/waiting_threads.h
+++ b/include/waiting_threads.h
@@ -81,7 +81,7 @@ typedef struct st_wt_thd {
1. Latest
Keep all weights equal.
2. Random
- Assight weights at random.
+ Assign weights at random.
(variant: modify a weight randomly before every lock request)
3. Youngest
Set weight to -NOW()