mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Merge branch '10.1' into 10.2
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2000, 2015, Oracle and/or its affiliates.
|
||||
Copyright (c) 2000, 2016, Oracle and/or its affiliates.
|
||||
Copyright (c) 2009, 2016, MariaDB
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
@@ -2280,6 +2280,18 @@ public:
|
||||
current_stmt_binlog_format == BINLOG_FORMAT_ROW);
|
||||
return current_stmt_binlog_format == BINLOG_FORMAT_ROW;
|
||||
}
|
||||
/**
|
||||
Determine if binlogging is disabled for this session
|
||||
@retval 0 if the current statement binlogging is disabled
|
||||
(could be because of binlog closed/binlog option
|
||||
is set to false).
|
||||
@retval 1 if the current statement will be binlogged
|
||||
*/
|
||||
inline bool is_current_stmt_binlog_disabled() const
|
||||
{
|
||||
return (!(variables.option_bits & OPTION_BIN_LOG) ||
|
||||
!mysql_bin_log.is_open());
|
||||
}
|
||||
|
||||
enum binlog_filter_state
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user