| 1 | /***************************************************************************** |
| 2 | |
| 3 | Copyright (c) 2012, 2017, Oracle and/or its affiliates. All Rights Reserved. |
| 4 | Copyright (c) 2017, 2022, MariaDB Corporation. |
| 5 | |
| 6 | This program is free software; you can redistribute it and/or modify it under |
| 7 | the terms of the GNU General Public License as published by the Free Software |
| 8 | Foundation; version 2 of the License. |
| 9 | |
| 10 | This program is distributed in the hope that it will be useful, but WITHOUT |
| 11 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
| 12 | FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. |
| 13 | |
| 14 | You should have received a copy of the GNU General Public License along with |
| 15 | this program; if not, write to the Free Software Foundation, Inc., |
| 16 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA |
| 17 | |
| 18 | *****************************************************************************/ |
| 19 | |
| 20 | /**************************************************//** |
| 21 | @file include/dict0stats_bg.h |
| 22 | Code used for background table and index stats gathering. |
| 23 | |
| 24 | Created Apr 26, 2012 Vasil Dimov |
| 25 | *******************************************************/ |
| 26 | |
| 27 | #ifndef dict0stats_bg_h |
| 28 | #define dict0stats_bg_hcxx . . $ `storage/innobase/include/dict0stats_bg.h:28:9`! |
| 29 | |
| 30 | #include "dict0types.h"cxx . . $ `<file>/storage/innobase/include/dict0types.h`/ |
| 31 | |
| 32 | #ifdef HAVE_PSI_INTERFACEcxx . . $ `include/my_global.h:90:9`! |
| 33 | extern mysql_pfs_key_tcxx . . $ mysql_pfs_key_t# recalc_pool_mutex_keycxx . . $ recalc_pool_mutex_key.; |
| 34 | #endif /* HAVE_PSI_INTERFACE */ |
| 35 | |
| 36 | /** Delete a table from the auto recalc pool, and ensure that |
| 37 | no statistics are being updated on it. */ |
| 38 | void dict_stats_recalc_pool_delcxx . . $ dict_stats_recalc_pool_del(62a5225ebb2f873).(table_id_tcxx . . $ table_id_t# id, bool have_mdl_exclusive); |
| 39 | |
| 40 | /*****************************************************************//** |
| 41 | Initialize global variables needed for the operation of dict_stats_thread(). |
| 42 | Must be called before dict_stats task is started. */ |
| 43 | void dict_stats_initcxx . . $ dict_stats_init(49f6e7a06ebc5aa8).(); |
| 44 | |
| 45 | /*****************************************************************//** |
| 46 | Free resources allocated by dict_stats_thread_init(), must be called |
| 47 | after dict_stats task has exited. */ |
| 48 | void dict_stats_deinitcxx . . $ dict_stats_deinit(49f6e7a06ebc5aa8).(); |
| 49 | |
| 50 | /** Start the dict stats timer. */ |
| 51 | void dict_stats_startcxx . . $ dict_stats_start(49f6e7a06ebc5aa8).(); |
| 52 | |
| 53 | /** Shut down the dict_stats timer. */ |
| 54 | void dict_stats_shutdowncxx . . $ dict_stats_shutdown(49f6e7a06ebc5aa8).(); |
| 55 | |
| 56 | /** Reschedule dict stats timer to run now. */ |
| 57 | void dict_stats_schedule_nowcxx . . $ dict_stats_schedule_now(49f6e7a06ebc5aa8).(); |
| 58 | |
| 59 | #endif /* dict0stats_bg_h */ |