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
248e5d01
Commit
248e5d01
authored
Mar 12, 2018
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-14581 Warning info not cleared when caching THD
In thread caching code, clear THD's warnings before reuse.
parent
5511e8ed
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletion
+17
-1
mysql-test/t/warnings-master.opt
mysql-test/t/warnings-master.opt
+1
-1
mysql-test/t/warnings.test
mysql-test/t/warnings.test
+12
-0
sql/mysqld.cc
sql/mysqld.cc
+4
-0
No files found.
mysql-test/t/warnings-master.opt
View file @
248e5d01
--loose-skip-innodb
--loose-skip-innodb
--thread-handling=one-thread-per-connection
mysql-test/t/warnings.test
View file @
248e5d01
...
...
@@ -286,3 +286,15 @@ SHOW WARNINGS;
DROP
TABLE
t1
;
DROP
FUNCTION
f1
;
# MDEV-14581 Warning info not cleared when caching THD
connect
(
con1
,
localhost
,
root
,,);
SELECT
TIME
(
'10:10:10.11111111111'
);
disconnect
con1
;
connect
(
con2
,
localhost
,
root
,,);
SHOW
WARNINGS
;
disconnect
con2
;
connection
default
;
sql/mysqld.cc
View file @
248e5d01
...
...
@@ -2961,6 +2961,10 @@ static bool cache_thread(THD *thd)
_db_pop_
();
#endif
/* Clear warnings. */
if
(
!
thd
->
get_stmt_da
()
->
is_warning_info_empty
())
thd
->
get_stmt_da
()
->
clear_warning_info
(
thd
->
query_id
);
set_timespec
(
abstime
,
THREAD_CACHE_TIMEOUT
);
while
(
!
abort_loop
&&
!
wake_thread
&&
!
kill_cached_threads
)
{
...
...
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