mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
729ff1ad34
Revert our temporary fix for "Bug#40360 Binlog related errors with binlog off" (r2935, r2936) and deploy MySQL's one, but put the function mysql_bin_log_is_engaged() inside mysql_addons.cc instead of in mysql's log.cc and use a different name for it so there is no collision when MySQL adds this function in log.cc. [note from the future: the windows part of this patch went into r2947] Approved by: Marko (https://svn.innodb.com/rb/r/41/)
47 lines
1.3 KiB
C
47 lines
1.3 KiB
C
/******************************************************
|
|
This file contains functions that need to be added to
|
|
MySQL code but have not been added yet.
|
|
|
|
Whenever you add a function here submit a MySQL bug
|
|
report (feature request) with the implementation. Then
|
|
write the bug number in the comment before the
|
|
function in this file.
|
|
|
|
When MySQL commits the function it can be deleted from
|
|
here. In a perfect world this file exists but is empty.
|
|
|
|
(c) 2007 Innobase Oy
|
|
|
|
Created November 07, 2007 Vasil Dimov
|
|
*******************************************************/
|
|
|
|
#include <my_global.h> /* for my_bool */
|
|
#include <mysql/plugin.h> /* for MYSQL_THD */
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif /* __cplusplus */
|
|
|
|
/***********************************************************************
|
|
Retrieve THD::thread_id
|
|
http://bugs.mysql.com/30930 */
|
|
|
|
unsigned long
|
|
ib_thd_get_thread_id(
|
|
/*=================*/
|
|
/* out: THD::thread_id */
|
|
const void* thd); /* in: THD */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif /* __cplusplus */
|
|
|
|
/* http://bugs.mysql.com/40360 */
|
|
/* http://lists.mysql.com/commits/57450 */
|
|
/**
|
|
See if the binary log is engaged for a thread, i.e., open and
|
|
LOG_BIN is set.
|
|
|
|
@return @c true if the binlog is active, @c false otherwise.
|
|
*/
|
|
my_bool ib_bin_log_is_engaged(const MYSQL_THD thd);
|