Debian Codegraph @

storage/innobase/handler/p_s.h

raw
1 /*****************************************************************************
2
3 Copyright (c) 2016, 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 handler/p_s.h
29 InnoDB performance_schema tables interface to MySQL.
30
31 *******************************************************/
32
33 #ifndef p_s_h
34 #define p_s_h
35
36 #include "mysql/psi/psi_data_lock.h"
37
38 /** Inspect data locks in innodb.
39 This class is used by the performance schema to extract lock data.
40 */
41 class Innodb_data_lock_inspector : public PSI_engine_data_lock_inspector {
42 public:
43 Innodb_data_lock_inspector() = default;
44 ~Innodb_data_lock_inspector() override = default;
45
46 PSI_engine_data_lock_iterator *create_data_lock_iterator() override;
47 PSI_engine_data_lock_wait_iterator *create_data_lock_wait_iterator() override;
48 void destroy_data_lock_iterator(PSI_engine_data_lock_iterator *it) override;
49 void destroy_data_lock_wait_iterator(
50 PSI_engine_data_lock_wait_iterator *it) override;
51 };
52
53 #endif /* p_s_h */