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
b7b2a7ce
Commit
b7b2a7ce
authored
Jul 02, 2013
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pull of revision 3313 (Pre-requisite patch for Bug#11763162 (55843 - Handled condition
appears as not handled) fixed.
parent
2fac162f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
sql/sql_class.cc
sql/sql_class.cc
+7
-4
sql/sql_error.cc
sql/sql_error.cc
+3
-0
No files found.
sql/sql_class.cc
View file @
b7b2a7ce
...
...
@@ -1203,6 +1203,13 @@ Sql_condition* THD::raise_condition(uint sql_errno,
if
(
handle_condition
(
sql_errno
,
sqlstate
,
level
,
msg
,
&
cond
))
DBUG_RETURN
(
cond
);
/* When simulating OOM, skip writing to error log to avoid mtr errors. */
cond
=
DBUG_EVALUATE_IF
(
"simulate_out_of_memory"
,
NULL
,
da
->
push_warning
(
this
,
sql_errno
,
sqlstate
,
level
,
msg
));
if
(
level
==
Sql_condition
::
WARN_LEVEL_ERROR
)
{
is_slave_error
=
1
;
// needed to catch query errors during replication
...
...
@@ -1216,10 +1223,6 @@ Sql_condition* THD::raise_condition(uint sql_errno,
query_cache_abort
(
&
query_cache_tls
);
/* When simulating OOM, skip writing to error log to avoid mtr errors */
DBUG_EXECUTE_IF
(
"simulate_out_of_memory"
,
DBUG_RETURN
(
NULL
););
da
->
push_warning
(
this
,
sql_errno
,
sqlstate
,
level
,
msg
);
DBUG_RETURN
(
cond
);
}
...
...
sql/sql_error.cc
View file @
b7b2a7ce
...
...
@@ -452,6 +452,9 @@ Diagnostics_area::set_error_status(uint sql_errno)
@param message SQL-condition message
@param sqlstate SQL-condition state
@param error_condition SQL-condition object representing the error state
@note Note, that error_condition may be NULL. It happens if a) OOM error is
being reported; or b) when Warning_info is full.
*/
void
...
...
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