summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorAlexander Kuleshov <kuleshovmail@gmail.com>2023-01-05 14:06:01 +0600
committerDaniel Black <daniel@mariadb.org>2023-01-06 07:20:37 +1100
commitd0a534d293edbb1d5345616e3052c0f9b94260a8 (patch)
tree6767450368e60b038b150f3bcfb2df86638a2bf5 /mysys
parent494acc19388c7d7f744ebc036cae1329e46101bb (diff)
downloadmariadb-git-d0a534d293edbb1d5345616e3052c0f9b94260a8.tar.gz
Fix synopses in mysys APIs
Since 7c58e97 the PSI_memory_key was added to some routines in the mysys/. This commit fixes synopses of functions that were updated with the PSI_memory_key parameter.
Diffstat (limited to 'mysys')
-rw-r--r--mysys/array.c1
-rw-r--r--mysys/hash.c3
-rw-r--r--mysys/my_alloc.c2
-rw-r--r--mysys/my_malloc.c4
4 files changed, 7 insertions, 3 deletions
diff --git a/mysys/array.c b/mysys/array.c
index 59698a4cc7c..29527ab5145 100644
--- a/mysys/array.c
+++ b/mysys/array.c
@@ -23,6 +23,7 @@
SYNOPSIS
init_dynamic_array2()
+ ps_key Key to register instrumented memory
array Pointer to an array
element_size Size of element
init_buffer Initial buffer pointer
diff --git a/mysys/hash.c b/mysys/hash.c
index abc11b42500..c86b0d92cb6 100644
--- a/mysys/hash.c
+++ b/mysys/hash.c
@@ -60,8 +60,9 @@ my_hash_value_type my_hash_sort(CHARSET_INFO *cs, const uchar *key,
dynamic array that is part of the hash will allocate memory
as required during insertion.
+ @param[in] psi_key The key to register instrumented memory
@param[in,out] hash The hash that is initialized
- @param[in[ growth_size size incrememnt for the underlying dynarray
+ @param[in] growth_size size incrememnt for the underlying dynarray
@param[in] charset The character set information
@param[in] size The hash size
@param[in] key_offest The key offset for the hash
diff --git a/mysys/my_alloc.c b/mysys/my_alloc.c
index 3e0b774b0c7..c3205eac6f0 100644
--- a/mysys/my_alloc.c
+++ b/mysys/my_alloc.c
@@ -34,8 +34,8 @@
SYNOPSIS
init_alloc_root()
+ key - key to register instrumented memory
mem_root - memory root to initialize
- name - name of memroot (for debugging)
block_size - size of chunks (blocks) used for memory allocation
(It is external size of chunk i.e. it should include
memory required for internal structures, thus it
diff --git a/mysys/my_malloc.c b/mysys/my_malloc.c
index befdcb0e5c3..c32831ed20d 100644
--- a/mysys/my_malloc.c
+++ b/mysys/my_malloc.c
@@ -59,6 +59,7 @@ void set_malloc_size_cb(MALLOC_SIZE_CB func)
/**
Allocate a sized block of memory.
+ @param key Key to register instrumented memory
@param size The size of the memory block in bytes.
@param flags Failure action modifiers (bitmasks).
@@ -120,7 +121,8 @@ void *my_malloc(PSI_memory_key key, size_t size, myf my_flags)
/**
@brief wrapper around realloc()
- @param old_point pointer to currently allocated area
+ @param key key to register instrumented memory
+ @param old_point pointer to currently allocated area
@param size new size requested, must be >0
@param my_flags flags