MySQL  8.0.19
Source Code Documentation
row0quiesce.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3 Copyright (c) 2012, 2019, Oracle and/or its affiliates. All Rights Reserved.
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 also distributed with certain software (including but not
10 limited to OpenSSL) that is licensed under separate terms, as designated in a
11 particular file or component or in included license documentation. The authors
12 of MySQL hereby grant you an additional permission to link the program and
13 your derivative works with the separately licensed software that they have
14 included with MySQL.
15 
16 This program is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
18 FOR A PARTICULAR PURPOSE. See the GNU General Public License, version 2.0,
19 for more details.
20 
21 You should have received a copy of the GNU General Public License along with
22 this program; if not, write to the Free Software Foundation, Inc.,
23 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24 
25 *****************************************************************************/
26 
27 /** @file include/row0quiesce.h
28 
29  Header file for tablespace quiesce functions.
30 
31  Created 2012-02-08 by Sunny Bains
32  *******************************************************/
33 
34 #ifndef row0quiesce_h
35 #define row0quiesce_h
36 
37 #include "dict0types.h"
38 #include "univ.i"
39 
40 struct trx_t;
41 
42 /** The version number of the export meta-data text file. */
43 #define IB_EXPORT_CFG_VERSION_V1 1
44 /** The v2 .cfg has space flags written */
45 #define IB_EXPORT_CFG_VERSION_V2 2
46 /** The v3 .cfg writes instant column default values in metadata section. */
47 #define IB_EXPORT_CFG_VERSION_V3 3
48 /** The v4 .cfg has the is_ascending boolean written for each index column. */
49 #define IB_EXPORT_CFG_VERSION_V4 4
50 /** Future version used to test that the correct error message is returned. */
51 #define IB_EXPORT_CFG_VERSION_V99 99
52 
53 /** Quiesce the tablespace that the table resides in. */
54 void row_quiesce_table_start(dict_table_t *table, /*!< in: quiesce this table */
55  trx_t *trx); /*!< in/out: transaction/session */
56 
57 /** Set a table's quiesce state.
58  @return DB_SUCCESS or errro code. */
60  dict_table_t *table, /*!< in: quiesce this table */
61  ib_quiesce_t state, /*!< in: quiesce state to set */
62  trx_t *trx) /*!< in/out: transaction */
63  MY_ATTRIBUTE((warn_unused_result));
64 
65 /** Cleanup after table quiesce. */
67  dict_table_t *table, /*!< in: quiesce this table */
68  trx_t *trx); /*!< in/out: transaction/session */
69 
70 #include "row0quiesce.ic"
71 
72 #endif /* row0quiesce_h */
ib_quiesce_t
ib_quiesce_t
Quiescing states for flushing tables to disk.
Definition: dict0types.h:294
dict0types.h
row_quiesce_table_start
void row_quiesce_table_start(dict_table_t *table, trx_t *trx)
Quiesce the tablespace that the table resides in.
Definition: row0quiesce.cc:717
dberr_t
dberr_t
Definition: db0err.h:38
dict_table_t
Data structure for a database table.
Definition: dict0mem.h:1510
row_quiesce_table_complete
void row_quiesce_table_complete(dict_table_t *table, trx_t *trx)
Cleanup after table quiesce.
Definition: row0quiesce.cc:779
row_quiesce_set_state
dberr_t row_quiesce_set_state(dict_table_t *table, ib_quiesce_t state, trx_t *trx)
Set a table's quiesce state.
Definition: row0quiesce.cc:836
trx_t::state
trx_state_t state
State of the trx from the point of view of concurrency control and the valid state transitions.
Definition: trx0trx.h:902
trx_t
Definition: trx0trx.h:780