Debian Codegraph @

storage/innobase/include/dict0priv.h

raw
1 /*****************************************************************************
2
3 Copyright (c) 2010, 2026, Oracle and/or its affiliates.
4
5 This program is free software; you can redistribute it and/or modify it under
6 the terms of the GNU General Public License, version 2.0, as published by the
7 Free Software Foundation.
8
9 This program is designed to work with certain software (including
10 but not limited to OpenSSL) that is licensed under separate terms,
11 as designated in a particular file or component or in included license
12 documentation. The authors of MySQL hereby grant you an additional
13 permission to link the program and your derivative works with the
14 separately licensed software that they have either included with
15 the program or referenced in the documentation.
16
17 This program is distributed in the hope that it will be useful, but WITHOUT
18 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
19 FOR A PARTICULAR PURPOSE. See the GNU General Public License, version 2.0,
20 for more details.
21
22 You should have received a copy of the GNU General Public License along with
23 this program; if not, write to the Free Software Foundation, Inc.,
24 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25
26 *****************************************************************************/
27
28 /** @file include/dict0priv.h
29 Data dictionary private functions
30
31 Created Fri 2 Jul 2010 13:30:38 EST - Sunny Bains
32 *******************************************************/
33
34 #ifndef dict0priv_h
35 #define dict0priv_h
36
37 #include "univ.i"
38
39 /** Gets a table; loads it to the dictionary cache if necessary. A low-level
40 function. Note: Not to be called from outside dict0*c functions.
41 @param[in] table_name the table name
42 @param[in] prev_table previous table name. The current table load
43 is happening because of the load of the
44 previous table name. This parameter is used
45 to check for cyclic calls.
46 @return table, NULL if not found */
47 inline dict_table_t *dict_table_get_low(
48 const char *table_name,
49 const std::string *prev_table = nullptr); /*!< in: table name */
50
51 /** Checks if a table is in the dictionary cache.
52 @return table, NULL if not found */
53 static inline dict_table_t *dict_table_check_if_in_cache_low(
54 const char *table_name); /*!< in: table name */
55
56 #include "dict0priv.ic"
57
58 #endif /* dict0priv.h */