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
acc1b326
Commit
acc1b326
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
029657be
cfcf51b7
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 @
acc1b326
...
@@ -8,10 +8,8 @@ DROP TABLE IF EXISTS t1;
...
@@ -8,10 +8,8 @@ DROP TABLE IF EXISTS t1;
--
echo
#
--
echo
#
--
echo
# Bug#51851: Server with SBR locks mutex twice on LOAD DATA into
--
echo
# Bug#51851: Server with SBR locks mutex twice on LOAD DATA into
--
echo
# partitioned MyISAM table
--
echo
# partitioned MyISAM table
perl
;
--
write_file
init_file
.
txt
open
(
INIT
,
">init_file.txt"
);
abcd
print
INIT
"abcd
\n
"
;
close
(
INIT
);
EOF
EOF
CREATE
TABLE
t1
CREATE
TABLE
t1
...
...
sql/table.cc
View file @
acc1b326
...
@@ -426,6 +426,18 @@ void TABLE_SHARE::destroy()
...
@@ -426,6 +426,18 @@ void TABLE_SHARE::destroy()
info_it
->
flags
=
0
;
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,
Make a copy since the share is allocated in its own root,
and free_root() updates its argument after freeing the memory.
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,
...
@@ -1704,11 +1716,17 @@ static int open_binary_frm(THD *thd, TABLE_SHARE *share, uchar *head,
delete
handler_file
;
delete
handler_file
;
my_hash_free
(
&
share
->
name_hash
);
my_hash_free
(
&
share
->
name_hash
);
if
(
share
->
ha_data_destroy
)
if
(
share
->
ha_data_destroy
)
{
share
->
ha_data_destroy
(
share
->
ha_data
);
share
->
ha_data_destroy
(
share
->
ha_data
);
share
->
ha_data_destroy
=
NULL
;
}
#ifdef WITH_PARTITION_STORAGE_ENGINE
#ifdef WITH_PARTITION_STORAGE_ENGINE
if
(
share
->
ha_part_data_destroy
)
if
(
share
->
ha_part_data_destroy
)
{
share
->
ha_part_data_destroy
(
share
->
ha_part_data
);
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
);
open_table_error
(
share
,
error
,
share
->
open_errno
,
errarg
);
DBUG_RETURN
(
error
);
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