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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
79f8d024
Commit
79f8d024
authored
May 24, 2011
by
Luis Soares
Browse files
Options
Browse Files
Download
Plain Diff
BUG#12558519
Automerged bzr bundle from bug report into latest mysql-5.5.
parents
ef8b4f22
1e495b27
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
1 deletion
+20
-1
sql/log_event.cc
sql/log_event.cc
+1
-0
sql/rpl_rli.cc
sql/rpl_rli.cc
+10
-0
sql/table.cc
sql/table.cc
+9
-1
No files found.
sql/log_event.cc
View file @
79f8d024
...
@@ -8441,6 +8441,7 @@ int Table_map_log_event::do_apply_event(Relay_log_info const *rli)
...
@@ -8441,6 +8441,7 @@ int Table_map_log_event::do_apply_event(Relay_log_info const *rli)
m_field_metadata
,
m_field_metadata_size
,
m_field_metadata
,
m_field_metadata_size
,
m_null_bits
,
m_flags
);
m_null_bits
,
m_flags
);
table_list
->
m_tabledef_valid
=
TRUE
;
table_list
->
m_tabledef_valid
=
TRUE
;
table_list
->
m_conv_table
=
NULL
;
table_list
->
open_type
=
OT_BASE_ONLY
;
table_list
->
open_type
=
OT_BASE_ONLY
;
/*
/*
...
...
sql/rpl_rli.cc
View file @
79f8d024
...
@@ -1258,6 +1258,16 @@ void Relay_log_info::clear_tables_to_lock()
...
@@ -1258,6 +1258,16 @@ void Relay_log_info::clear_tables_to_lock()
tables_to_lock
->
m_tabledef
.
table_def
::~
table_def
();
tables_to_lock
->
m_tabledef
.
table_def
::~
table_def
();
tables_to_lock
->
m_tabledef_valid
=
FALSE
;
tables_to_lock
->
m_tabledef_valid
=
FALSE
;
}
}
/*
If blob fields were used during conversion of field values
from the master table into the slave table, then we need to
free the memory used temporarily to store their values before
copying into the slave's table.
*/
if
(
tables_to_lock
->
m_conv_table
)
free_blobs
(
tables_to_lock
->
m_conv_table
);
tables_to_lock
=
tables_to_lock
=
static_cast
<
RPL_TABLE_LIST
*>
(
tables_to_lock
->
next_global
);
static_cast
<
RPL_TABLE_LIST
*>
(
tables_to_lock
->
next_global
);
tables_to_lock_count
--
;
tables_to_lock_count
--
;
...
...
sql/table.cc
View file @
79f8d024
...
@@ -2189,7 +2189,15 @@ void free_blobs(register TABLE *table)
...
@@ -2189,7 +2189,15 @@ void free_blobs(register TABLE *table)
for
(
ptr
=
table
->
s
->
blob_field
,
end
=
ptr
+
table
->
s
->
blob_fields
;
for
(
ptr
=
table
->
s
->
blob_field
,
end
=
ptr
+
table
->
s
->
blob_fields
;
ptr
!=
end
;
ptr
!=
end
;
ptr
++
)
ptr
++
)
((
Field_blob
*
)
table
->
field
[
*
ptr
])
->
free
();
{
/*
Reduced TABLE objects which are used by row-based replication for
type conversion might have some fields missing. Skip freeing BLOB
buffers for such missing fields.
*/
if
(
table
->
field
[
*
ptr
])
((
Field_blob
*
)
table
->
field
[
*
ptr
])
->
free
();
}
}
}
...
...
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