MySQL 26.7.0
Source Code Documentation
binlog_tc_log.h
Go to the documentation of this file.
1/* Copyright (c) 2025, 2026, 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 designed to work 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 either included with
13 the program or referenced in the documentation.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License, version 2.0, for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23#ifndef BINLOG_TC_LOG_INCLUDED
24#define BINLOG_TC_LOG_INCLUDED
25
27
28/**
29 * @see Binlog_tc_log_processing for class and its methods documentation
30 */
32 public:
34 virtual ~Binlog_tc_log() override;
35
36 [[nodiscard]] virtual int prepare(MYSQL_BIN_LOG *binlog, THD *thd,
37 bool all) override;
38 [[nodiscard]] virtual THD *fetch_and_process_flush_stage_queue(
39 bool check_and_skip_flush_logs) override;
40 [[nodiscard]] virtual int process_flush_stage_queue(
41 MYSQL_BIN_LOG *binlog, my_off_t *total_bytes_var,
42 THD **out_queue_var) override;
43 [[nodiscard]] virtual bool rollback_in_engines(THD *thd, bool all) override;
44 virtual void finish_transaction_in_engines(THD *thd, bool all,
45 bool run_after_commit) override;
46
47 [[nodiscard]] virtual bool binlog_register_observer() override;
48 virtual void binlog_unregister_observer() override;
49 [[nodiscard]] virtual bool is_persistence_enabled() override;
50};
51
52#endif /* BINLOG_TC_LOG_INCLUDED */
An interface to delegate responsibility from MYSQL_BIN_LOG class.
Definition: binlog_tc_log_processing.h:37
Definition: binlog_tc_log.h:31
Binlog_tc_log()
Definition: binlog_tc_log.cc:40
virtual ~Binlog_tc_log() override
Definition: binlog_tc_log.cc:42
virtual int process_flush_stage_queue(MYSQL_BIN_LOG *binlog, my_off_t *total_bytes_var, THD **out_queue_var) override
Execute the flush stage.
Definition: binlog_tc_log.cc:114
virtual bool rollback_in_engines(THD *thd, bool all) override
Rolls back the underlying transaction in storage engines.
Definition: binlog_tc_log.cc:162
virtual int prepare(MYSQL_BIN_LOG *binlog, THD *thd, bool all) override
Prepare the transaction in the transaction coordinator.
Definition: binlog_tc_log.cc:44
virtual void finish_transaction_in_engines(THD *thd, bool all, bool run_after_commit) override
Finishes the transaction in the engines.
Definition: binlog_tc_log.cc:166
virtual bool is_persistence_enabled() override
Is persistence enabled.
Definition: binlog_tc_log.cc:180
virtual THD * fetch_and_process_flush_stage_queue(bool check_and_skip_flush_logs) override
Fetch and empty BINLOG_FLUSH_STAGE and COMMIT_ORDER_FLUSH_STAGE flush queues and flush transactions t...
Definition: binlog_tc_log.cc:72
virtual bool binlog_register_observer() override
Register binlog observer.
Definition: binlog_tc_log.cc:177
virtual void binlog_unregister_observer() override
Unregister binlog observer.
Definition: binlog_tc_log.cc:178
Definition: binlog.h:108
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
ulonglong my_off_t
Definition: my_inttypes.h:72
Definition: pfs.cc:38