diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2020-02-12 08:55:17 +0100 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2020-02-12 08:55:17 +0100 |
commit | 4b087e175431895bd5a69cb298281f0c30a1d2a6 (patch) | |
tree | 17a5b0e8f4a678f46ff1e1b1faabcdfedacc5ffe /sql/log.h | |
parent | fc2f2fa85306d80c317e76933264ba3d3675ed1c (diff) | |
parent | 646d1ec83a57d9a5b380079afc3612c1d9acadd5 (diff) | |
download | mariadb-git-4b087e175431895bd5a69cb298281f0c30a1d2a6.tar.gz |
Merge branch '10.4' into 10.5
Diffstat (limited to 'sql/log.h')
-rw-r--r-- | sql/log.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/sql/log.h b/sql/log.h index 7ccfd606f21..8684eaba786 100644 --- a/sql/log.h +++ b/sql/log.h @@ -1,5 +1,5 @@ /* Copyright (c) 2005, 2016, Oracle and/or its affiliates. - Copyright (c) 2009, 2017, MariaDB Corporation. + Copyright (c) 2009, 2020, MariaDB Corporation. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -583,7 +583,18 @@ public: long notify_count; /* For linking in requests to the binlog background thread. */ xid_count_per_binlog *next_in_queue; - xid_count_per_binlog(); /* Give link error if constructor used. */ + xid_count_per_binlog(char *log_file_name, uint log_file_name_len) + :binlog_id(0), xid_count(0), notify_count(0) + { + binlog_name_len= log_file_name_len; + binlog_name= (char *) my_malloc(binlog_name_len, MYF(MY_ZEROFILL)); + if (binlog_name) + memcpy(binlog_name, log_file_name, binlog_name_len); + } + ~xid_count_per_binlog() + { + my_free(binlog_name); + } }; I_List<xid_count_per_binlog> binlog_xid_count_list; mysql_mutex_t LOCK_binlog_background_thread; |