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
37210261
Commit
37210261
authored
Mar 01, 2013
by
Marc Alff
Browse files
Options
Browse Files
Download
Plain Diff
L0ocal merge
parents
99f83c66
0ebb72b5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
10 deletions
+15
-10
mysys/errors.c
mysys/errors.c
+2
-2
mysys/my_write.c
mysys/my_write.c
+3
-3
sql/sql_handler.cc
sql/sql_handler.cc
+10
-5
No files found.
mysys/errors.c
View file @
37210261
/* Copyright (c) 2000, 201
0
, Oracle and/or its affiliates. All rights reserved.
/* Copyright (c) 2000, 201
3
, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
...
...
@@ -117,7 +117,7 @@ void wait_for_free_space(const char *filename, int errors)
MY_WAIT_FOR_USER_TO_FIX_PANIC
,
MY_WAIT_GIVE_USER_A_MESSAGE
*
MY_WAIT_FOR_USER_TO_FIX_PANIC
);
}
DBUG_EXECUTE_IF
(
"simulate_
file_write_error_once
"
,
DBUG_EXECUTE_IF
(
"simulate_
no_free_space_error
"
,
{
(
void
)
sleep
(
1
);
return
;
...
...
mysys/my_write.c
View file @
37210261
/* Copyright (c) 2000, 201
1
, Oracle and/or its affiliates. All rights reserved.
/* Copyright (c) 2000, 201
3
, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
...
...
@@ -33,7 +33,7 @@ size_t my_write(File Filedes, const uchar *Buffer, size_t Count, myf MyFlags)
if
(
unlikely
(
!
Count
))
DBUG_RETURN
(
0
);
DBUG_EXECUTE_IF
(
"simulate_
file_write_error_once
"
,
DBUG_EXECUTE_IF
(
"simulate_
no_free_space_error
"
,
{
DBUG_SET
(
"+d,simulate_file_write_error"
);});
for
(;;)
{
...
...
@@ -67,7 +67,7 @@ size_t my_write(File Filedes, const uchar *Buffer, size_t Count, myf MyFlags)
{
wait_for_free_space
(
my_filename
(
Filedes
),
errors
);
errors
++
;
DBUG_EXECUTE_IF
(
"simulate_
file_write_error_once
"
,
DBUG_EXECUTE_IF
(
"simulate_
no_free_space_error
"
,
{
DBUG_SET
(
"-d,simulate_file_write_error"
);});
continue
;
}
...
...
sql/sql_handler.cc
View file @
37210261
/* Copyright (c) 2001, 201
1
, Oracle and/or its affiliates. All rights reserved.
/* Copyright (c) 2001, 201
3
, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
...
...
@@ -820,10 +820,15 @@ static TABLE_LIST *mysql_ha_find(THD *thd, TABLE_LIST *tables)
hash_tables
=
(
TABLE_LIST
*
)
my_hash_element
(
&
thd
->
handler_tables_hash
,
i
);
for
(
tables
=
first
;
tables
;
tables
=
tables
->
next_local
)
{
if
((
!
*
tables
->
db
||
!
my_strcasecmp
(
&
my_charset_latin1
,
hash_tables
->
db
,
tables
->
db
))
&&
!
my_strcasecmp
(
&
my_charset_latin1
,
hash_tables
->
table_name
,
tables
->
table_name
))
if
(
tables
->
is_anonymous_derived_table
())
continue
;
if
((
!
*
tables
->
get_db_name
()
||
!
my_strcasecmp
(
&
my_charset_latin1
,
hash_tables
->
get_db_name
(),
tables
->
get_db_name
()))
&&
!
my_strcasecmp
(
&
my_charset_latin1
,
hash_tables
->
get_table_name
(),
tables
->
get_table_name
()))
break
;
}
if
(
tables
)
...
...
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