MySQL  8.0.18
Source Code Documentation
row0quiesce.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3 Copyright (c) 2012, 2018, 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 0x1UL
44 /** The v2 .cfg has space flags written */
45 #define IB_EXPORT_CFG_VERSION_V2 0x2UL
46 /** The v3 .cfg writes instant column default values in metadata section. */
47 #define IB_EXPORT_CFG_VERSION_V3 0x3UL
48 
49 /** Quiesce the tablespace that the table resides in. */
50 void row_quiesce_table_start(dict_table_t *table, /*!< in: quiesce this table */
51  trx_t *trx); /*!< in/out: transaction/session */
52 
53 /** Set a table's quiesce state.
54  @return DB_SUCCESS or errro code. */
56  dict_table_t *table, /*!< in: quiesce this table */
57  ib_quiesce_t state, /*!< in: quiesce state to set */
58  trx_t *trx) /*!< in/out: transaction */
59  MY_ATTRIBUTE((warn_unused_result));
60 
61 /** Cleanup after table quiesce. */
63  dict_table_t *table, /*!< in: quiesce this table */
64  trx_t *trx); /*!< in/out: transaction/session */
65 
66 #include "row0quiesce.ic"
67 
68 #endif /* row0quiesce_h */
Definition: trx0trx.h:780
Data structure for a database table.
Definition: dict0mem.h:1529
ib_quiesce_t
Quiescing states for flushing tables to disk.
Definition: dict0types.h:140
dberr_t row_quiesce_set_state(dict_table_t *table, ib_quiesce_t state, trx_t *trx)
Set a table&#39;s quiesce state.
Definition: row0quiesce.cc:821
Data dictionary global types.
dberr_t
Definition: db0err.h:38
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
void row_quiesce_table_start(dict_table_t *table, trx_t *trx)
Quiesce the tablespace that the table resides in.
Definition: row0quiesce.cc:702
void row_quiesce_table_complete(dict_table_t *table, trx_t *trx)
Cleanup after table quiesce.
Definition: row0quiesce.cc:764