Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
e358d5ee
Commit
e358d5ee
authored
Jun 29, 2022
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
put binlog_cache_data on a memroot
parent
8cdd6613
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
sql/log.cc
sql/log.cc
+6
-4
No files found.
sql/log.cc
View file @
e358d5ee
...
...
@@ -275,7 +275,7 @@ void make_default_log_name(char **out, const char* log_ext, bool once)
Helper classes to store non-transactional and transactional data
before copying it to the binary log.
*/
class
binlog_cache_data
:
public
ilist_node
<>
class
binlog_cache_data
:
public
Sql_alloc
,
public
ilist_node
<>
{
public:
binlog_cache_data
()
:
share
(
0
),
sv_list
(
0
),
m_pending
(
0
),
status
(
0
),
...
...
@@ -6382,9 +6382,9 @@ bool MYSQL_BIN_LOG::write_table_map(THD *thd, TABLE *table, bool with_annotate)
#ifdef HAVE_REPLICATION
binlog_cache_data
*
binlog_setup_cache_data
(
TABLE_SHARE
*
share
)
static
binlog_cache_data
*
binlog_setup_cache_data
(
MEM_ROOT
*
root
,
TABLE_SHARE
*
share
)
{
auto
cache
=
new
binlog_cache_data
();
auto
cache
=
new
(
root
)
binlog_cache_data
();
if
(
!
cache
||
open_cached_file
(
&
cache
->
cache_log
,
mysql_tmpdir
,
LOG_PREFIX
,
(
size_t
)
binlog_cache_size
,
MYF
(
MY_WME
)))
{
...
...
@@ -6410,7 +6410,9 @@ binlog_cache_data *online_alter_binlog_get_cache_data(THD *thd, TABLE *table)
return
&
cache
;
}
auto
*
new_cache_data
=
binlog_setup_cache_data
(
table
->
s
);
MEM_ROOT
*
root
=
thd
->
in_multi_stmt_transaction_mode
()
?
&
thd
->
transaction
->
mem_root
:
thd
->
mem_root
;
auto
*
new_cache_data
=
binlog_setup_cache_data
(
root
,
table
->
s
);
list
.
push_back
(
*
new_cache_data
);
return
new_cache_data
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment