Go to the source code of this file.
◆ enum_ha_read_modes
Enumerator |
---|
RFIRST | |
RNEXT | |
RPREV | |
RLAST | |
RKEY | |
RNEXT_SAME | |
◆ mysql_ha_cleanup()
void mysql_ha_cleanup |
( |
THD * |
thd | ) |
|
Close all HANDLER's tables.
- Parameters
-
- Note
- Broadcasts refresh if it closed a table with old version.
◆ mysql_ha_flush()
void mysql_ha_flush |
( |
THD * |
thd | ) |
|
Flush (close and mark for re-open) all tables that should be should be reopen.
- Parameters
-
- Note
- Broadcasts refresh if it closed a table with old version.
◆ mysql_ha_flush_table()
void mysql_ha_flush_table |
( |
THD * |
thd, |
|
|
const char * |
db_name, |
|
|
const char * |
table_name |
|
) |
| |
Close cursors on the table from the HANDLER's hash.
- Parameters
-
thd | Thread context. |
db_name | Database name for the table. |
table_name | Table name. |
◆ mysql_ha_flush_tables()
void mysql_ha_flush_tables |
( |
THD * |
thd, |
|
|
Table_ref * |
all_tables |
|
) |
| |
Close cursors of matching tables from the HANDLER's hash table.
- Parameters
-
thd | Thread identifier. |
all_tables | The list of tables to flush. |
◆ mysql_ha_rm_tables()
Remove matching tables from the HANDLER's hash table.
- Parameters
-
thd | Thread identifier. |
tables | The list of tables to remove. |
- Note
- Broadcasts refresh if it closed a table with old version.
◆ mysql_ha_rm_temporary_tables()
void mysql_ha_rm_temporary_tables |
( |
THD * |
thd | ) |
|
Remove temporary tables from the HANDLER's hash table.
The reason for having a separate function, rather than calling mysql_ha_rm_tables() is that it is not always feasible (e.g. in close_temporary_tables) to obtain a Table_ref containing the temporary tables.
- See also
- close_temporary_tables
- Parameters
-
◆ mysql_ha_set_explicit_lock_duration()
void mysql_ha_set_explicit_lock_duration |
( |
THD * |
thd | ) |
|
Set explicit duration for metadata locks corresponding to open HANDLERs to protect them from being released at the end of transaction.
- Parameters
-