mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
branches/zip: Enclose the definition of dict_index_t::trx_id in
#ifdef ROW_MERGE_IS_INDEX_USABLE, to avoid growing the memory footprint until MySQL implements and calls the virtual method handler::is_index_available() or something equivalent.
This commit is contained in:
@@ -122,6 +122,7 @@ row_merge_create_index(
|
||||
dict_table_t* table, /* in: the index is on this table */
|
||||
const merge_index_def_t* /* in: the index definition */
|
||||
index_def);
|
||||
#ifdef ROW_MERGE_IS_INDEX_USABLE
|
||||
/*************************************************************************
|
||||
Check if a transaction can use an index. */
|
||||
|
||||
@@ -132,6 +133,7 @@ row_merge_is_index_usable(
|
||||
the transaction else FALSE*/
|
||||
const trx_t* trx, /* in: transaction */
|
||||
const dict_index_t* index); /* in: index to check */
|
||||
#endif /* ROW_MERGE_IS_INDEX_USABLE */
|
||||
/*************************************************************************
|
||||
If there are views that refer to the old table name then we "attach" to
|
||||
the new instance of the table else we drop it immediately. */
|
||||
|
||||
Reference in New Issue
Block a user