Skip to content

Commit d0a534d

Browse files
0xAXgrooverdan
authored andcommitted
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.
1 parent 494acc1 commit d0a534d

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

mysys/array.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
2424
SYNOPSIS
2525
init_dynamic_array2()
26+
ps_key Key to register instrumented memory
2627
array Pointer to an array
2728
element_size Size of element
2829
init_buffer Initial buffer pointer

mysys/hash.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,9 @@ my_hash_value_type my_hash_sort(CHARSET_INFO *cs, const uchar *key,
6060
dynamic array that is part of the hash will allocate memory
6161
as required during insertion.
6262
63+
@param[in] psi_key The key to register instrumented memory
6364
@param[in,out] hash The hash that is initialized
64-
@param[in[ growth_size size incrememnt for the underlying dynarray
65+
@param[in] growth_size size incrememnt for the underlying dynarray
6566
@param[in] charset The character set information
6667
@param[in] size The hash size
6768
@param[in] key_offest The key offset for the hash

mysys/my_alloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
3535
SYNOPSIS
3636
init_alloc_root()
37+
key - key to register instrumented memory
3738
mem_root - memory root to initialize
38-
name - name of memroot (for debugging)
3939
block_size - size of chunks (blocks) used for memory allocation
4040
(It is external size of chunk i.e. it should include
4141
memory required for internal structures, thus it

mysys/my_malloc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ void set_malloc_size_cb(MALLOC_SIZE_CB func)
5959
/**
6060
Allocate a sized block of memory.
6161
62+
@param key Key to register instrumented memory
6263
@param size The size of the memory block in bytes.
6364
@param flags Failure action modifiers (bitmasks).
6465
@@ -120,7 +121,8 @@ void *my_malloc(PSI_memory_key key, size_t size, myf my_flags)
120121
/**
121122
@brief wrapper around realloc()
122123
123-
@param old_point pointer to currently allocated area
124+
@param key key to register instrumented memory
125+
@param old_point pointer to currently allocated area
124126
@param size new size requested, must be >0
125127
@param my_flags flags
126128

0 commit comments

Comments
 (0)