1
/******************************************************
2
This file contains functions that need to be added to
3
MySQL code but have not been added yet.
5
Whenever you add a function here submit a MySQL bug
6
report (feature request) with the implementation. Then
7
write the bug number in the comment before the
10
When MySQL commits the function it can be deleted from
11
here. In a perfect world this file exists but is empty.
15
Created November 07, 2007 Vasil Dimov
16
*******************************************************/
20
#endif /* MYSQL_SERVER */
22
#include <mysql_priv.h>
24
#include "mysql_addons.h"
27
/***********************************************************************
28
Retrieve THD::thread_id
29
http://bugs.mysql.com/30930 */
30
extern "C" UNIV_INTERN
34
/* out: THD::thread_id */
35
const void* thd) /* in: THD */
37
return((unsigned long) ((THD*) thd)->thread_id);
40
/* http://bugs.mysql.com/40360 */
41
/* http://lists.mysql.com/commits/57450 */
43
See if the binary log is engaged for a thread, i.e., open and
46
@return @c true if the binlog is active, @c false otherwise.
48
my_bool ib_bin_log_is_engaged(const MYSQL_THD thd)
50
return mysql_bin_log.is_open() && (thd->options & OPTION_BIN_LOG);