mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 11:57:38 +02:00
MDEV-12270 Port MySQL 8.0 Bug#21141390 REMOVE UNUSED FUNCTIONS AND CONVERT GLOBAL SYMBOLS TO STATIC
InnoDB defines some functions that are not called at all. Other functions are called, but only from the same compilation unit. Remove some function declarations and definitions, and add 'static' keywords. Some symbols must be kept for separately compiled tools, such as innochecksum.
This commit is contained in:
parent
4e1116b2c6
commit
97acc4a1c3
78 changed files with 730 additions and 2912 deletions
|
|
@ -138,31 +138,6 @@ row_ins_index_entry_set_vals(
|
|||
dtuple_t* entry,
|
||||
const dtuple_t* row);
|
||||
|
||||
/***************************************************************//**
|
||||
Tries to insert the externally stored fields (off-page columns)
|
||||
of a clustered index entry.
|
||||
@return DB_SUCCESS or DB_OUT_OF_FILE_SPACE */
|
||||
dberr_t
|
||||
row_ins_index_entry_big_rec_func(
|
||||
/*=============================*/
|
||||
const dtuple_t* entry, /*!< in/out: index entry to insert */
|
||||
const big_rec_t* big_rec,/*!< in: externally stored fields */
|
||||
ulint* offsets,/*!< in/out: rec offsets */
|
||||
mem_heap_t** heap, /*!< in/out: memory heap */
|
||||
dict_index_t* index, /*!< in: index */
|
||||
const char* file, /*!< in: file name of caller */
|
||||
#ifndef DBUG_OFF
|
||||
const void* thd, /*!< in: connection, or NULL */
|
||||
#endif /* DBUG_OFF */
|
||||
unsigned line) /*!< in: line number of caller */
|
||||
MY_ATTRIBUTE((nonnull(1,2,3,4,5,6), warn_unused_result));
|
||||
#ifdef DBUG_OFF
|
||||
# define row_ins_index_entry_big_rec(e,big,ofs,heap,index,thd,file,line) \
|
||||
row_ins_index_entry_big_rec_func(e,big,ofs,heap,index,file,line)
|
||||
#else /* DBUG_OFF */
|
||||
# define row_ins_index_entry_big_rec(e,big,ofs,heap,index,thd,file,line) \
|
||||
row_ins_index_entry_big_rec_func(e,big,ofs,heap,index,file,thd,line)
|
||||
#endif /* DBUG_OFF */
|
||||
/***************************************************************//**
|
||||
Inserts an entry into a clustered index. Tries first optimistic,
|
||||
then pessimistic descent down the tree. If the entry matches enough
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue