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
2a8bad17
Commit
2a8bad17
authored
Jun 15, 2009
by
Davi Arnaut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable session debugging after its not necessary anymore.
parent
81b5a391
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
mysql-test/t/log_tables_debug.test
mysql-test/t/log_tables_debug.test
+5
-6
No files found.
mysql-test/t/log_tables_debug.test
View file @
2a8bad17
...
...
@@ -18,7 +18,7 @@ SET @old_slow_query_log_file= @@global.slow_query_log_file;
--
echo
#
--
echo
# Bug#45387 Information about statement id for prepared
--
echo
# Bug#45387 Information about statement id for prepared
--
echo
# statements missed from general log
--
echo
#
...
...
@@ -28,7 +28,7 @@ let MYSQLD_DATADIR= `SELECT @@datadir`;
SET
@@
global
.
general_log
=
ON
;
SET
@@
global
.
general_log_file
=
'bug45387_general.log'
;
# turn on output of timestamps on all log file entries
,
# turn on output of timestamps on all log file entries
SET
SESSION
debug
=
'+d,reset_log_last_time'
;
let
CONN_ID
=
`SELECT CONNECTION_ID()`
;
...
...
@@ -37,7 +37,7 @@ FLUSH LOGS;
# reset log settings
SET
@@
global
.
general_log
=
@
old_general_log
;
SET
@@
global
.
general_log_file
=
@
old_general_log_file
;
SET
SESSION
debug
=
'-d
,reset_log_last_time
'
;
SET
SESSION
debug
=
'-d'
;
perl
;
# get the relevant info from the surrounding perl invocation
...
...
@@ -45,7 +45,7 @@ perl;
$conn_id
=
$ENV
{
'CONN_ID'
};
# loop through the log file looking for the stmt querying for conn id
open
(
FILE
,
"
$datadir
/bug45387_general.log"
)
or
open
(
FILE
,
"
$datadir
/bug45387_general.log"
)
or
die
(
"Unable to read log file
$datadir
/bug45387_general.log: $!
\n
"
);
while
(
<
FILE
>
)
{
if
(
/
\d
{
6
}
\d\d
:
\d\d
:
\d\d
[
\t
]
+
(
\d
+
)[
\t
]
+
Query
[
\t
]
+
SELECT
CONNECTION_ID
/
)
{
...
...
@@ -64,7 +64,7 @@ perl;
while
(
$line
=
<
FILE
>
)
{
print
$line
;
}
}
}
close
(
FILE
);
EOF
...
...
@@ -92,4 +92,3 @@ if(!$fixed_bug38124)
eval
SET
@@
global
.
slow_query_log_file
=
'$my_var'
;
--
enable_query_log
}
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