mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
Merge 10.2 into 10.3
This commit is contained in:
commit
ed41947b78
1 changed files with 14 additions and 27 deletions
|
@ -61,35 +61,22 @@ check.
|
|||
If you make a change in this module make sure that no codepath is
|
||||
introduced where a call to log_free_check() is bypassed. */
|
||||
|
||||
/***********************************************************//**
|
||||
Creates an entry template for each index of a table. */
|
||||
static
|
||||
void
|
||||
ins_node_create_entry_list(
|
||||
/*=======================*/
|
||||
ins_node_t* node) /*!< in: row insert node */
|
||||
/** Create an row template for each index of a table. */
|
||||
static void ins_node_create_entry_list(ins_node_t *node)
|
||||
{
|
||||
dict_index_t* index;
|
||||
dtuple_t* entry;
|
||||
node->entry_list.reserve(UT_LIST_GET_LEN(node->table->indexes));
|
||||
|
||||
ut_ad(node->entry_sys_heap);
|
||||
|
||||
/* We will include all indexes (include those corrupted
|
||||
secondary indexes) in the entry list. Filtration of
|
||||
these corrupted index will be done in row_ins() */
|
||||
|
||||
node->entry_list.reserve(UT_LIST_GET_LEN(node->table->indexes));
|
||||
|
||||
for (index = dict_table_get_first_index(node->table);
|
||||
index != 0;
|
||||
index = dict_table_get_next_index(index)) {
|
||||
|
||||
entry = row_build_index_entry_low(
|
||||
node->row, NULL, index, node->entry_sys_heap,
|
||||
ROW_BUILD_FOR_INSERT);
|
||||
|
||||
node->entry_list.push_back(entry);
|
||||
}
|
||||
for (dict_index_t *index= dict_table_get_first_index(node->table); index;
|
||||
index= dict_table_get_next_index(index))
|
||||
{
|
||||
/* Corrupted or incomplete secondary indexes will be filtered out in
|
||||
row_ins(). */
|
||||
dtuple_t *entry= index->online_status >= ONLINE_INDEX_ABORTED
|
||||
? dtuple_create(node->entry_sys_heap, 0)
|
||||
: row_build_index_entry_low(node->row, NULL, index, node->entry_sys_heap,
|
||||
ROW_BUILD_FOR_INSERT);
|
||||
node->entry_list.push_back(entry);
|
||||
}
|
||||
}
|
||||
|
||||
/*****************************************************************//**
|
||||
|
|
Loading…
Reference in a new issue