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
00ff7345
Commit
00ff7345
authored
Jun 30, 2012
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- More "local" code in show_explain.test
- Better comments - Make unittest compile on Windows
parent
b9093d37
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
8 deletions
+9
-8
mysql-test/r/show_explain.result
mysql-test/r/show_explain.result
+2
-0
mysql-test/t/show_explain.test
mysql-test/t/show_explain.test
+2
-0
sql/my_apc.cc
sql/my_apc.cc
+1
-5
sql/my_apc.h
sql/my_apc.h
+3
-3
unittest/sql/my_apc-t.cc
unittest/sql/my_apc-t.cc
+1
-0
No files found.
mysql-test/r/show_explain.result
View file @
00ff7345
...
...
@@ -735,6 +735,7 @@ grant ALL on test.* to test2@localhost;
#
# First, make sure that user 'test2' cannot do SHOW EXPLAIN on us
#
set @show_explain_probe_select_id=1;
set debug_dbug='d,show_explain_probe_join_exec_start';
select * from t0 where a < 3;
show explain for $thr2;
...
...
@@ -759,6 +760,7 @@ set debug_dbug='';
# Now, grant test2 a PROCESSLIST permission, and see that he's able to observe us
#
grant process on *.* to test2@localhost;
set @show_explain_probe_select_id=1;
set debug_dbug='d,show_explain_probe_join_exec_start';
select * from t0 where a < 3;
show explain for $thr2;
...
...
mysql-test/t/show_explain.test
View file @
00ff7345
...
...
@@ -739,6 +739,7 @@ connection con1;
--
echo
#
--
echo
# First, make sure that user 'test2' cannot do SHOW EXPLAIN on us
--
echo
#
set
@
show_explain_probe_select_id
=
1
;
set
debug_dbug
=
'd,show_explain_probe_join_exec_start'
;
send
select
*
from
t0
where
a
<
3
;
...
...
@@ -772,6 +773,7 @@ grant process on *.* to test2@localhost;
connect
(
con2
,
localhost
,
test2
,,);
connection
con1
;
set
@
show_explain_probe_select_id
=
1
;
set
debug_dbug
=
'd,show_explain_probe_join_exec_start'
;
send
select
*
from
t0
where
a
<
3
;
...
...
sql/my_apc.cc
View file @
00ff7345
...
...
@@ -22,11 +22,7 @@
#endif
/*
Standalone testing:
g++ -c -DMY_APC_STANDALONE -g -I.. -I../include -o my_apc.o my_apc.cc
g++ -L../mysys -L../dbug -L../strings my_apc.o -lmysys -ldbug -lmystrings -lpthread -lrt
*/
/* For standalone testing of APC system, see unittest/sql/my_apc-t.cc */
/*
...
...
sql/my_apc.h
View file @
00ff7345
...
...
@@ -34,7 +34,9 @@
*/
/*
Target for asynchronous procedue calls (APCs).
Target for asynchronous procedure calls (APCs).
- A target is running in some particular thread,
- One can make calls to it from other threads.
*/
class
Apc_target
{
...
...
@@ -113,5 +115,3 @@ private:
}
};
///////////////////////////////////////////////////////////////////////
unittest/sql/my_apc-t.cc
View file @
00ff7345
...
...
@@ -84,6 +84,7 @@ void *test_apc_service_thread(void *ptr)
mysql_mutex_destroy
(
&
target_mutex
);
my_thread_end
();
pthread_exit
(
0
);
return
NULL
;
}
...
...
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