MySQL 8.0.33
Source Code Documentation
rpl_trx_boundary_parser.h
Go to the documentation of this file.
1/* Copyright (c) 2015, 2023, Oracle and/or its affiliates.
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License, version 2.0,
5 as published by the Free Software Foundation.
6
7 This program is also distributed with certain software (including
8 but not limited to OpenSSL) that is licensed under separate terms,
9 as designated in a particular file or component or in included license
10 documentation. The authors of MySQL hereby grant you an additional
11 permission to link the program and your derivative works with the
12 separately licensed software that they have included with MySQL.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License, version 2.0, for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22
23/**
24 @addtogroup Replication
25 @{
26
27 @file
28
29 @brief Replication transaction boundary parser. This includes code for
30 an extension of the transaction boundary parser to parse a replication
31 stream of events identifying the transaction boundaries (like if the event
32 is starting a transaction, is in the middle of a transaction or if the event
33 is ending a transaction).
34*/
35
36#ifndef RPL_TRX_BOUNDARY_PARSER_H
37#define RPL_TRX_BOUNDARY_PARSER_H
38
39#include <stddef.h>
40
42
43/**
44 @class Replication_transaction_boundary_parser
45
46 This is the class for verifying transaction boundaries in a replication
47 event stream.
48*/
51 public:
52 /**
53 The constructor
54 @param context If this parser is used on a receiver or applier context
55 */
58 : Transaction_boundary_parser(context) {}
59 /**
60 Log warnings into the error log.
61
62 @param error the error number
63 @param message the error message
64 */
65 void log_server_warning(int error, const char *message) override;
66};
67
68/**
69 @} (End of group Replication)
70*/
71
72#endif /* RPL_TRX_BOUNDARY_PARSER_H */
This is the class for verifying transaction boundaries in a replication event stream.
Definition: rpl_trx_boundary_parser.h:50
void log_server_warning(int error, const char *message) override
Log warnings into the error log.
Definition: rpl_trx_boundary_parser.cc:30
Replication_transaction_boundary_parser(Transaction_boundary_parser::enum_trx_boundary_parser_context context)
The constructor.
Definition: rpl_trx_boundary_parser.h:56
This is the base class for verifying transaction boundaries.
Definition: trx_boundary_parser.h:47
enum_trx_boundary_parser_context
The context where the parser is used.
Definition: trx_boundary_parser.h:52
Transaction boundary parser definitions.