mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Merge 10.4 into 10.5
This commit is contained in:
@ -7095,11 +7095,12 @@ void dbug_serve_apcs(THD *thd, int n_calls);
|
||||
class ScopedStatementReplication
|
||||
{
|
||||
public:
|
||||
ScopedStatementReplication(THD *thd) : thd(thd)
|
||||
{
|
||||
if (thd)
|
||||
saved_binlog_format= thd->set_current_stmt_binlog_format_stmt();
|
||||
}
|
||||
ScopedStatementReplication(THD *thd) :
|
||||
saved_binlog_format(thd
|
||||
? thd->set_current_stmt_binlog_format_stmt()
|
||||
: BINLOG_FORMAT_MIXED),
|
||||
thd(thd)
|
||||
{}
|
||||
~ScopedStatementReplication()
|
||||
{
|
||||
if (thd)
|
||||
@ -7107,8 +7108,8 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
enum_binlog_format saved_binlog_format;
|
||||
THD *thd;
|
||||
const enum_binlog_format saved_binlog_format;
|
||||
THD *const thd;
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user