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
ff1be5d9
Commit
ff1be5d9
authored
Mar 12, 2014
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#198 add tokudb_backtrace to help debug handler interface bugs
parent
0e147881
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
storage/tokudb/hatoku_defines.h
storage/tokudb/hatoku_defines.h
+5
-0
storage/tokudb/hatoku_hton.cc
storage/tokudb/hatoku_hton.cc
+11
-0
No files found.
storage/tokudb/hatoku_defines.h
View file @
ff1be5d9
...
...
@@ -202,6 +202,11 @@ PATENT RIGHTS GRANT:
#ifndef _TOKUDB_DEBUG_H
#define _TOKUDB_DEBUG_H
#define TOKU_INCLUDE_BACKTRACE 0
#if TOKU_INCLUDE_BACKTRACE
static
void
tokudb_backtrace
(
void
);
#endif
extern
ulong
tokudb_debug
;
// tokudb debug tracing
...
...
storage/tokudb/hatoku_hton.cc
View file @
ff1be5d9
...
...
@@ -316,6 +316,7 @@ static void handle_ydb_error(int error) {
static
int
tokudb_init_func
(
void
*
p
)
{
TOKUDB_DBUG_ENTER
(
""
);
int
r
;
#if defined(_WIN64)
...
...
@@ -2211,6 +2212,16 @@ static SHOW_VAR toku_global_status_variables_export[]= {
{
NullS
,
NullS
,
SHOW_LONG
}
};
#if TOKU_INCLUDE_BACKTRACE
#include <execinfo.h>
static
void
tokudb_backtrace
(
void
)
{
const
int
N_POINTERS
=
30
;
void
*
backtrace_pointers
[
N_POINTERS
];
int
n
=
backtrace
(
backtrace_pointers
,
N_POINTERS
);
backtrace_symbols_fd
(
backtrace_pointers
,
n
,
fileno
(
stderr
));
}
#endif
mysql_declare_plugin
(
tokudb
)
{
MYSQL_STORAGE_ENGINE_PLUGIN
,
...
...
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