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
aed67d25
Commit
aed67d25
authored
Oct 14, 2011
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
In crash handler, output session value of the optimizer switch.
parent
5e4a381c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
sql/mysqld.cc
sql/mysqld.cc
+10
-2
No files found.
sql/mysqld.cc
View file @
aed67d25
...
...
@@ -2761,8 +2761,16 @@ the thread stack. Please read http://dev.mysql.com/doc/mysql/en/linux.html\n\n",
my_safe_print_str
(
thd
->
query
(),
min
(
65536
,
thd
->
query_length
()));
fprintf
(
stderr
,
"Connection ID (thread ID): %lu
\n
"
,
(
ulong
)
thd
->
thread_id
);
fprintf
(
stderr
,
"Status: %s
\n
"
,
kreason
);
fprintf
(
stderr
,
"Optimizer switch: %s
\n
"
,
optimizer_switch_str
);
fputc
(
'\n'
,
stderr
);
fprintf
(
stderr
,
"Optimizer switch: "
);
ulonglong
optsw
=
thd
->
variables
.
optimizer_switch
;
for
(
uint
i
=
0
;
optimizer_switch_names
[
i
+
1
];
i
++
,
optsw
>>=
1
)
{
if
(
i
)
fputc
(
','
,
stderr
);
fprintf
(
stderr
,
"%s=%s"
,
optimizer_switch_names
[
i
],
optsw
&
1
?
"on"
:
"off"
);
}
fprintf
(
stderr
,
"
\n\n
"
);
}
fprintf
(
stderr
,
"\
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
\n
\
...
...
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