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
da9a6aec
Commit
da9a6aec
authored
Apr 14, 2005
by
petr@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/cps/mysql/trees/mysql-4.1
into mysql.com:/home/cps/mysql/trees/mysql-5.0
parents
f7d89dd4
75cfee68
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
10 deletions
+20
-10
mysys/default.c
mysys/default.c
+18
-9
sql/ha_innodb.cc
sql/ha_innodb.cc
+2
-1
No files found.
mysys/default.c
View file @
da9a6aec
...
...
@@ -513,15 +513,16 @@ static int search_default_file_with_ext(Process_option_func opt_handler,
/* trim trailing whitespace from directory name */
end
=
ptr
+
strlen
(
ptr
)
-
1
;
/*
This would work fine even if no whitespaces are met
since fgets() stores the newline character in the buffer
*/
for
(;
my_isspace
(
&
my_charset_latin1
,
*
(
end
-
1
));
end
--
)
{}
end
[
0
]
=
0
;
/* fgets() stores the newline character in the buffer */
if
((
end
[
0
]
==
'\n'
)
||
(
end
[
0
]
==
'\r'
)
||
my_isspace
(
&
my_charset_latin1
,
end
[
0
]))
{
for
(;
my_isspace
(
&
my_charset_latin1
,
*
(
end
-
1
));
end
--
)
{}
end
[
0
]
=
0
;
}
/* print error msg if there is nothing after !inludedir directive */
/* print error msg if there is nothing after !in
c
ludedir directive */
if
(
end
==
ptr
)
{
fprintf
(
stderr
,
...
...
@@ -539,7 +540,7 @@ static int search_default_file_with_ext(Process_option_func opt_handler,
search_file
=
search_dir
->
dir_entry
+
i
;
ext
=
fn_ext
(
search_file
->
name
);
/* check extens
t
ion */
/* check extension */
for
(
tmp_ext
=
(
char
**
)
f_extensions
;
*
tmp_ext
;
*
tmp_ext
++
)
{
if
(
!
strcmp
(
ext
,
*
tmp_ext
))
...
...
@@ -587,6 +588,14 @@ static int search_default_file_with_ext(Process_option_func opt_handler,
continue
;
}
else
if
(
recursion_level
>=
max_recursion_level
)
{
fprintf
(
stderr
,
"warning: skipping !include directive as maximum include"
"recursion level was reached in file %s at line %d
\n
"
,
name
,
line
);
}
if
(
*
ptr
==
'['
)
/* Group name */
{
...
...
sql/ha_innodb.cc
View file @
da9a6aec
...
...
@@ -6136,7 +6136,8 @@ ha_innobase::store_lock(
(
lock_type
==
TL_READ_HIGH_PRIORITY
&&
thd
->
in_lock_tables
)
||
lock_type
==
TL_READ_WITH_SHARED_LOCKS
||
lock_type
==
TL_READ_NO_INSERT
||
thd
->
lex
->
sql_command
!=
SQLCOM_SELECT
)
{
(
thd
->
lex
->
sql_command
!=
SQLCOM_SELECT
&&
lock_type
!=
TL_IGNORE
))
{
/* The OR cases above are in this order:
1) MySQL is doing LOCK TABLES ... READ LOCAL, or
...
...
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