Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
e9e6c7a3
Commit
e9e6c7a3
authored
Dec 19, 2022
by
musvaage
Committed by
Daniel Black
Dec 20, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
header typos
parent
0ca3aaa7
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
35 additions
and
35 deletions
+35
-35
include/heap.h
include/heap.h
+3
-3
include/json_lib.h
include/json_lib.h
+2
-2
include/m_ctype.h
include/m_ctype.h
+4
-4
include/ma_dyncol.h
include/ma_dyncol.h
+1
-1
include/my_base.h
include/my_base.h
+6
-6
include/my_decimal_limits.h
include/my_decimal_limits.h
+1
-1
include/my_dir.h
include/my_dir.h
+1
-1
include/my_global.h
include/my_global.h
+2
-2
include/my_sys.h
include/my_sys.h
+3
-3
include/myisam.h
include/myisam.h
+2
-2
include/myisammrg.h
include/myisammrg.h
+2
-2
include/mysql.h
include/mysql.h
+1
-1
include/mysql/plugin_ftparser.h
include/mysql/plugin_ftparser.h
+1
-1
include/mysql/psi/mysql_thread.h
include/mysql/psi/mysql_thread.h
+1
-1
include/mysql/service_base64.h
include/mysql/service_base64.h
+1
-1
include/mysql/service_my_snprintf.h
include/mysql/service_my_snprintf.h
+1
-1
include/mysql/service_thd_timezone.h
include/mysql/service_thd_timezone.h
+1
-1
include/queues.h
include/queues.h
+1
-1
include/waiting_threads.h
include/waiting_threads.h
+1
-1
No files found.
include/heap.h
View file @
e9e6c7a3
...
...
@@ -33,12 +33,12 @@ extern "C" {
#include "my_compare.h"
#include "my_tree.h"
/* defines used by heap-fun
k
tions */
/* defines used by heap-fun
c
tions */
#define HP_MAX_LEVELS 4
/* 128^5 records is enough */
#define HP_PTRS_IN_NOD 128
/* struct used with heap_fun
k
tions */
/* struct used with heap_fun
c
tions */
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 referen
s
e */
struct
st_heap_info
;
/* For referen
c
e */
typedef
struct
st_hp_keydef
/* Key definition with open */
{
...
...
include/json_lib.h
View file @
e9e6c7a3
...
...
@@ -371,7 +371,7 @@ int json_find_paths_next(json_engine_t *je, json_find_paths_t *state);
/*
Conver
s
t 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.
...
...
@@ -382,7 +382,7 @@ int json_unescape(CHARSET_INFO *json_cs,
uchar
*
res
,
uchar
*
res_end
);
/*
Conver
s
t 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.
...
...
include/m_ctype.h
View file @
e9e6c7a3
...
...
@@ -14,7 +14,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */
/*
A better i
n
plementation of the UNIX ctype(3) library.
A better i
m
plementation of the UNIX ctype(3) library.
*/
#ifndef _m_ctype_h
...
...
@@ -123,7 +123,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, tertiar
t
y) */
/* Collation weights on a single level (e.g. primary, secondary, tertiary) */
typedef
struct
my_uca_level_info_st
{
my_wc_t
maxchar
;
...
...
@@ -953,7 +953,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-convert
a
ble characters.
and non-convert
i
ble characters.
*/
uint32
my_convert_using_func
(
char
*
to
,
size_t
to_length
,
CHARSET_INFO
*
to_cs
,
my_charset_conv_wc_mb
mb_wc
,
...
...
@@ -1041,7 +1041,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
@re
r
urn 0, for a single byte character, broken sequence, empty string.
@re
t
urn 0, for a single byte character, broken sequence, empty string.
*/
static
inline
uint
my_ismbchar
(
CHARSET_INFO
*
cs
,
const
char
*
str
,
const
char
*
end
)
...
...
include/ma_dyncol.h
View file @
e9e6c7a3
...
...
@@ -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 resour
s
es */
ER_DYNCOL_RESOURCE
=
-
3
,
/* Out of resour
c
es */
ER_DYNCOL_DATA
=
-
4
,
/* Incorrect input data */
ER_DYNCOL_UNKNOWN_CHARSET
=
-
5
,
/* Unknown character set */
ER_DYNCOL_TRUNCATED
=
2
/* OK, but data was truncated */
...
...
include/my_base.h
View file @
e9e6c7a3
...
...
@@ -125,7 +125,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 ava
lably
(def) */
HA_EXTRA_WAIT_LOCK
=
12
,
/* Wait until file is ava
ilable
(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 */
...
...
@@ -288,7 +288,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 calc
alu
ted */
/* Internal Flag Can be calc
ula
ted */
#define HA_INVISIBLE_KEY 2<<18
/* Automatic bits in key-flag */
...
...
@@ -435,9 +435,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
/* Dup
p
licate 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
/* Up
p
date 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 */
...
...
@@ -453,7 +453,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
/* Dup
p
licate 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 */
...
...
@@ -497,7 +497,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 han
ld
er error happened */
no other han
dl
er 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 */
...
...
include/my_decimal_limits.h
View file @
e9e6c7a3
...
...
@@ -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 prec
es
sion we can handle 65 digits. MariaDB can store in
With normal prec
i
sion 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
...
...
include/my_dir.h
View file @
e9e6c7a3
...
...
@@ -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 conten
t
s modify */
time_t
st_ctime
;
/* time for last inode or contents modify */
}
MY_STAT
;
...
...
include/my_global.h
View file @
e9e6c7a3
...
...
@@ -675,7 +675,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 stem
m
s 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
...
...
@@ -896,7 +896,7 @@ typedef long long my_ptrdiff_t;
#define STDCALL
#endif
/* Typdefs for eas
y
ier portability */
/* Typdefs for easier portability */
#ifndef HAVE_UCHAR
typedef
unsigned
char
uchar
;
/* Short for unsigned char */
...
...
include/my_sys.h
View file @
e9e6c7a3
...
...
@@ -444,7 +444,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 according
ing
updated with
memcpy() and internal variables will be according
ly
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.
...
...
@@ -488,7 +488,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 e
cn
rypt and decrypt) for encryption.
Includes the overhead(storing key to e
nc
rypt 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
...
...
@@ -997,7 +997,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 ne
s
essary */
/* not a complete set of mmap() flags, but only those that ne
c
essary */
#define PROT_READ 1
#define PROT_WRITE 2
#define MAP_NORESERVE 0
...
...
include/myisam.h
View file @
e9e6c7a3
...
...
@@ -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_fun
k
tions */
/* This file should be included when using myisam_fun
c
tions */
#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 referen
s
e */
struct
st_myisam_info
;
/* For referen
c
e */
struct
st_mi_isam_share
;
typedef
struct
st_myisam_info
MI_INFO
;
struct
st_mi_s_param
;
...
...
include/myisammrg.h
View file @
e9e6c7a3
...
...
@@ -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_fun
k
tions */
/* This file should be included when using merge_isam_fun
c
tions */
#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 dup
p
licated on err */
int
errkey
;
/* With key was duplicated on err */
uint
options
;
/* HA_OPTION_... used */
ulong
*
rec_per_key
;
/* for sql optimizing */
}
MYMERGE_INFO
;
...
...
include/mysql.h
View file @
e9e6c7a3
...
...
@@ -655,7 +655,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 containin
in
g 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
...
...
include/mysql/plugin_ftparser.h
View file @
e9e6c7a3
...
...
@@ -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 corr
r
esponds 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
...
...
include/mysql/psi/mysql_thread.h
View file @
e9e6c7a3
...
...
@@ -588,7 +588,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 "i
n
dentity".
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.
...
...
include/mysql/service_base64.h
View file @
e9e6c7a3
...
...
@@ -29,7 +29,7 @@ extern "C" {
#include <stdlib.h>
#endif
/* Allow mult
u
ple chunks 'AAA= AA== AA==', binlog uses this */
/* Allow mult
i
ple chunks 'AAA= AA== AA==', binlog uses this */
#define MY_BASE64_DECODE_ALLOW_MULTIPLE_CHUNKS 1
extern
struct
base64_service_st
{
...
...
include/mysql/service_my_snprintf.h
View file @
e9e6c7a3
...
...
@@ -40,7 +40,7 @@
@post
The syntax of a format string is generally the same:
% <flag> <width> <precision> <length modifier> <format>
where ever
i
thing but the format is optional.
where ever
y
thing but the format is optional.
Three one-character flags are recognized:
'0' has the standard zero-padding semantics;
...
...
include/mysql/service_thd_timezone.h
View file @
e9e6c7a3
...
...
@@ -16,7 +16,7 @@
/**
@file
This service provdes functions to convert between my_time_t and
This service prov
i
des functions to convert between my_time_t and
MYSQL_TIME taking into account the current value of the time_zone
session variable.
...
...
include/queues.h
View file @
e9e6c7a3
...
...
@@ -24,7 +24,7 @@
*/
/*
Code for gener
el
l handling of priority Queues.
Code for gener
a
l handling of priority Queues.
Implementation of queues from "Algorithms in C" by Robert Sedgewick.
*/
...
...
include/waiting_threads.h
View file @
e9e6c7a3
...
...
@@ -81,7 +81,7 @@ typedef struct st_wt_thd {
1. Latest
Keep all weights equal.
2. Random
Assig
ht
weights at random.
Assig
n
weights at random.
(variant: modify a weight randomly before every lock request)
3. Youngest
Set weight to -NOW()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment