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
cdf4bd1a
Commit
cdf4bd1a
authored
Apr 24, 2013
by
Annamalai Gurusami
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge from mysql-5.1 to mysql-5.5
parent
b15c464b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
15 deletions
+5
-15
storage/innobase/handler/ha_innodb.cc
storage/innobase/handler/ha_innodb.cc
+5
-15
No files found.
storage/innobase/handler/ha_innodb.cc
View file @
cdf4bd1a
...
...
@@ -3790,7 +3790,6 @@ ha_innobase::open(
dict_table_t
*
ib_table
;
char
norm_name
[
1000
];
THD
*
thd
;
ulint
retries
=
0
;
char
*
is_part
=
NULL
;
ibool
par_case_name_set
=
FALSE
;
char
par_case_name
[
MAX_FULL_NAME_LEN
+
1
];
...
...
@@ -3823,22 +3822,18 @@ ha_innobase::open(
upd_buf_size
=
0
;
/* We look for pattern #P# to see if the table is partitioned
MySQL table. The retry logic for partitioned tables is a
workaround for http://bugs.mysql.com/bug.php?id=33349. Look
at support issue https://support.mysql.com/view.php?id=21080
for more details. */
MySQL table. */
#ifdef __WIN__
is_part
=
strstr
(
norm_name
,
"#p#"
);
#else
is_part
=
strstr
(
norm_name
,
"#P#"
);
#endif
/* __WIN__ */
retry:
/* Get pointer to a table object in InnoDB dictionary cache */
ib_table
=
dict_table_get
(
norm_name
,
TRUE
);
if
(
NULL
==
ib_table
)
{
if
(
is_part
&&
retries
<
10
)
{
if
(
is_part
)
{
/* MySQL partition engine hard codes the file name
separator as "#P#". The text case is fixed even if
lower_case_table_names is set to 1 or 2. This is true
...
...
@@ -3881,11 +3876,7 @@ ha_innobase::open(
ib_table
=
dict_table_get
(
par_case_name
,
FALSE
);
}
if
(
!
ib_table
)
{
++
retries
;
os_thread_sleep
(
100000
);
goto
retry
;
}
else
{
if
(
ib_table
)
{
#ifndef __WIN__
sql_print_warning
(
"Partition table %s opened "
"after converting to lower "
...
...
@@ -3911,9 +3902,8 @@ ha_innobase::open(
}
if
(
is_part
)
{
sql_print_error
(
"Failed to open table %s after "
"%lu attempts.
\n
"
,
norm_name
,
retries
);
sql_print_error
(
"Failed to open table %s.
\n
"
,
norm_name
);
}
sql_print_error
(
"Cannot find or open table %s from
\n
"
...
...
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