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
e98fd1d6
Commit
e98fd1d6
authored
Oct 01, 2010
by
Mattias Jonsson
Browse files
Options
Browse Files
Download
Plain Diff
Manual merge of bug#51851 from mysql-5.1-bugteam into mysql-5.5-bugteam
parents
b7acb88c
4ef9195e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
5 deletions
+21
-5
mysql-test/t/partition_binlog_stmt.test
mysql-test/t/partition_binlog_stmt.test
+2
-4
sql/table.cc
sql/table.cc
+19
-1
No files found.
mysql-test/t/partition_binlog_stmt.test
View file @
e98fd1d6
...
...
@@ -8,10 +8,8 @@ DROP TABLE IF EXISTS t1;
--
echo
#
--
echo
# Bug#51851: Server with SBR locks mutex twice on LOAD DATA into
--
echo
# partitioned MyISAM table
perl
;
open
(
INIT
,
">init_file.txt"
);
print
INIT
"abcd
\n
"
;
close
(
INIT
);
--
write_file
init_file
.
txt
abcd
EOF
CREATE
TABLE
t1
...
...
sql/table.cc
View file @
e98fd1d6
...
...
@@ -426,6 +426,18 @@ void TABLE_SHARE::destroy()
info_it
->
flags
=
0
;
}
}
if
(
ha_data_destroy
)
{
ha_data_destroy
(
ha_data
);
ha_data_destroy
=
NULL
;
}
#ifdef WITH_PARTITION_STORAGE_ENGINE
if
(
ha_part_data_destroy
)
{
ha_part_data_destroy
(
ha_part_data
);
ha_part_data_destroy
=
NULL
;
}
#endif
/* WITH_PARTITION_STORAGE_ENGINE */
/*
Make a copy since the share is allocated in its own root,
and free_root() updates its argument after freeing the memory.
...
...
@@ -1704,11 +1716,17 @@ static int open_binary_frm(THD *thd, TABLE_SHARE *share, uchar *head,
delete
handler_file
;
my_hash_free
(
&
share
->
name_hash
);
if
(
share
->
ha_data_destroy
)
{
share
->
ha_data_destroy
(
share
->
ha_data
);
share
->
ha_data_destroy
=
NULL
;
}
#ifdef WITH_PARTITION_STORAGE_ENGINE
if
(
share
->
ha_part_data_destroy
)
{
share
->
ha_part_data_destroy
(
share
->
ha_part_data
);
#endif
share
->
ha_data_destroy
=
NULL
;
}
#endif
/* WITH_PARTITION_STORAGE_ENGINE */
open_table_error
(
share
,
error
,
share
->
open_errno
,
errarg
);
DBUG_RETURN
(
error
);
...
...
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