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
85193022
Commit
85193022
authored
Jun 21, 2007
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: Declare innobase_mysql_print_thd() in ha_prototypes.h.
parent
02e0334e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
15 deletions
+13
-15
handler/ha_innodb.cc
handler/ha_innodb.cc
+3
-7
include/ha_prototypes.h
include/ha_prototypes.h
+10
-0
trx/trx0trx.c
trx/trx0trx.c
+0
-8
No files found.
handler/ha_innodb.cc
View file @
85193022
...
...
@@ -744,23 +744,19 @@ innobase_mysql_end_print_arbitrary_thd(void)
}
/*****************************************************************
Prints info of a THD object (== user session thread) to the given file.
NOTE that /mysql/innobase/trx/trx0trx.c must contain the prototype for
this function! */
Prints info of a THD object (== user session thread) to the given file. */
extern
"C"
void
innobase_mysql_print_thd
(
/*=====================*/
FILE
*
f
,
/* in: output stream */
void
*
input_thd
,
/* in: pointer to a MySQL THD object */
void
*
thd
,
/* in: pointer to a MySQL THD object */
uint
max_query_len
)
/* in: max query length to print, or 0 to
use the default max length */
{
THD
*
thd
;
char
buffer
[
1024
];
thd
=
(
THD
*
)
input_thd
;
fputs
(
thd_security_context
(
thd
,
buffer
,
sizeof
(
buffer
),
fputs
(
thd_security_context
((
THD
*
)
thd
,
buffer
,
sizeof
buffer
,
max_query_len
),
f
);
putc
(
'\n'
,
f
);
}
...
...
include/ha_prototypes.h
View file @
85193022
...
...
@@ -48,4 +48,14 @@ thd_has_edited_nontrans_tables(
been edited */
void
*
thd
);
/* in: thread handle (THD*) */
/*****************************************************************
Prints info of a THD object (== user session thread) to the given file. */
void
innobase_mysql_print_thd
(
/*=====================*/
FILE
*
f
,
/* in: output stream */
void
*
thd
,
/* in: pointer to a MySQL THD object */
uint
max_query_len
);
/* in: max query length to print, or 0 to
use the default max length */
#endif
trx/trx0trx.c
View file @
85193022
...
...
@@ -27,14 +27,6 @@ Created 3/26/1996 Heikki Tuuri
#include "trx0xa.h"
#include "ha_prototypes.h"
/* Copy of the prototype for innobase_mysql_print_thd: this
copy MUST be equal to the one in mysql/sql/ha_innodb.cc ! */
void
innobase_mysql_print_thd
(
FILE
*
f
,
void
*
thd
,
ulint
max_query_len
);
/* Dummy session used currently in MySQL interface */
sess_t
*
trx_dummy_sess
=
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