diff options
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r-- | sql/sql_class.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc index 5c0d2b31d4e..7e03986f4bb 100644 --- a/sql/sql_class.cc +++ b/sql/sql_class.cc @@ -356,6 +356,18 @@ CHANGED_TABLE_LIST* THD::changed_table_dup(TABLE *table) } +#ifdef SIGNAL_WITH_VIO_CLOSE +void THD::close_active_vio() +{ + safe_mutex_assert_owner(&LOCK_delete); + if (active_vio) + { + vio_close(active_vio); + active_vio = 0; + } +} +#endif + /***************************************************************************** ** Functions to provide a interface to select results *****************************************************************************/ |