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
b3f103bc
Commit
b3f103bc
authored
Jan 13, 2003
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge sinisa@work.mysql.com:/home/bk/mysql-4.0
into sinisa.nasamreza.org:/mnt/work/mysql-4.0
parents
fce972fe
a55ce6de
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
3 deletions
+39
-3
innobase/srv/srv0srv.c
innobase/srv/srv0srv.c
+11
-0
innobase/trx/trx0trx.c
innobase/trx/trx0trx.c
+16
-0
libmysql/libmysql.def
libmysql/libmysql.def
+6
-0
sql/ha_innodb.cc
sql/ha_innodb.cc
+6
-3
No files found.
innobase/srv/srv0srv.c
View file @
b3f103bc
...
...
@@ -1715,6 +1715,7 @@ srv_conc_enter_innodb(
ibool
has_slept
=
FALSE
;
srv_conc_slot_t
*
slot
;
ulint
i
;
char
err_buf
[
1000
];
if
(
srv_thread_concurrency
>=
500
)
{
/* Disable the concurrency check */
...
...
@@ -1733,6 +1734,16 @@ srv_conc_enter_innodb(
retry:
os_fast_mutex_lock
(
&
srv_conc_mutex
);
if
(
trx
->
declared_to_be_inside_innodb
)
{
ut_print_timestamp
(
stderr
);
trx_print
(
err_buf
,
trx
);
fprintf
(
stderr
,
" InnoDB: Error: trying to declare trx to enter InnoDB, but
\n
"
"InnoDB: it already is declared.
\n
%s
\n
"
,
err_buf
);
}
if
(
srv_conc_n_threads
<
(
lint
)
srv_thread_concurrency
)
{
srv_conc_n_threads
++
;
...
...
innobase/trx/trx0trx.c
View file @
b3f103bc
...
...
@@ -233,8 +233,19 @@ trx_free(
/*=====*/
trx_t
*
trx
)
/* in, own: trx object */
{
char
err_buf
[
1000
];
ut_ad
(
mutex_own
(
&
kernel_mutex
));
if
(
trx
->
declared_to_be_inside_innodb
)
{
ut_print_timestamp
(
stderr
);
trx_print
(
err_buf
,
trx
);
fprintf
(
stderr
,
" InnoDB: Error: Freeing a trx which is declared to be processing
\n
"
"InnoDB: inside InnoDB.
\n
%s
\n
"
,
err_buf
);
}
ut_a
(
trx
->
magic_n
==
TRX_MAGIC_N
);
trx
->
magic_n
=
11112222
;
...
...
@@ -1518,6 +1529,11 @@ trx_print(
buf
+=
sprintf
(
buf
,
" purge trx"
);
}
if
(
trx
->
declared_to_be_inside_innodb
)
{
buf
+=
sprintf
(
buf
,
", thread declared inside InnoDB %lu"
,
trx
->
n_tickets_to_enter_innodb
);
}
buf
+=
sprintf
(
buf
,
"
\n
"
);
start_of_line
=
buf
;
...
...
libmysql/libmysql.def
View file @
b3f103bc
...
...
@@ -101,6 +101,12 @@ EXPORTS
mysql_rpl_probe
mysql_set_master
mysql_add_slave
my_getopt_print_errors
handle_options
my_print_help
my_print_variables
getopt_ull_limit_value
getopt_compare_strings
...
...
sql/ha_innodb.cc
View file @
b3f103bc
...
...
@@ -3938,18 +3938,21 @@ innodb_show_status(
DBUG_RETURN
(
-
1
);
}
/* We let the InnoDB Monitor to output at most
1
00 kB of text, add
/* We let the InnoDB Monitor to output at most
2
00 kB of text, add
a safety margin of 10 kB for buffer overruns */
buf
=
(
char
*
)
ut_malloc
(
1
10
*
1024
);
buf
=
(
char
*
)
ut_malloc
(
2
10
*
1024
);
srv_sprintf_innodb_monitor
(
buf
,
1
00
*
1024
);
srv_sprintf_innodb_monitor
(
buf
,
2
00
*
1024
);
List
<
Item
>
field_list
;
field_list
.
push_back
(
new
Item_empty_string
(
"Status"
,
strlen
(
buf
)));
if
(
send_fields
(
thd
,
field_list
,
1
))
{
ut_free
(
buf
);
DBUG_RETURN
(
-
1
);
}
...
...
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