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
693f1346
Commit
693f1346
authored
Sep 23, 2010
by
Mark Leith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#56922 SHOW ENGINE INNODB STATUS truncation limit is too strict and not instrumented
rb://459
approved by Jimmuy / Inaam
parent
5af0e024
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
storage/innobase/handler/ha_innodb.cc
storage/innobase/handler/ha_innodb.cc
+4
-1
storage/innobase/include/srv0srv.h
storage/innobase/include/srv0srv.h
+4
-1
storage/innobase/srv/srv0srv.c
storage/innobase/srv/srv0srv.c
+2
-0
No files found.
storage/innobase/handler/ha_innodb.cc
View file @
693f1346
...
...
@@ -674,6 +674,8 @@ static SHOW_VAR innodb_status_variables[]= {
(
char
*
)
&
export_vars
.
innodb_rows_read
,
SHOW_LONG
},
{
"rows_updated"
,
(
char
*
)
&
export_vars
.
innodb_rows_updated
,
SHOW_LONG
},
{
"truncated_status_writes"
,
(
char
*
)
&
export_vars
.
innodb_truncated_status_writes
,
SHOW_LONG
},
{
NullS
,
NullS
,
SHOW_LONG
}
};
...
...
@@ -8969,7 +8971,7 @@ innodb_show_status(
{
trx_t
*
trx
;
static
const
char
truncated_msg
[]
=
"... truncated...
\n
"
;
const
long
MAX_STATUS_SIZE
=
64000
;
const
long
MAX_STATUS_SIZE
=
1048576
;
ulint
trx_list_start
=
ULINT_UNDEFINED
;
ulint
trx_list_end
=
ULINT_UNDEFINED
;
...
...
@@ -8999,6 +9001,7 @@ innodb_show_status(
if
(
flen
>
MAX_STATUS_SIZE
)
{
usable_len
=
MAX_STATUS_SIZE
;
srv_truncated_status_writes
++
;
}
else
{
usable_len
=
flen
;
}
...
...
storage/innobase/include/srv0srv.h
View file @
693f1346
...
...
@@ -225,6 +225,8 @@ extern ulong srv_thread_sleep_delay;
extern
ulong
srv_spin_wait_delay
;
extern
ibool
srv_priority_boost
;
extern
ulint
srv_truncated_status_writes
;
extern
ulint
srv_mem_pool_size
;
extern
ulint
srv_lock_table_size
;
...
...
@@ -710,11 +712,12 @@ struct export_var_struct{
ulint
innodb_rows_inserted
;
/*!< srv_n_rows_inserted */
ulint
innodb_rows_updated
;
/*!< srv_n_rows_updated */
ulint
innodb_rows_deleted
;
/*!< srv_n_rows_deleted */
ulint
innodb_truncated_status_writes
;
/*!< srv_truncated_status_writes */
};
/** Thread slot in the thread table */
typedef
struct
srv_slot_struct
srv_slot_t
;
/** Thread table is an array of slots */
typedef
srv_slot_t
srv_table_t
;
...
...
storage/innobase/srv/srv0srv.c
View file @
693f1346
...
...
@@ -424,6 +424,7 @@ UNIV_INTERN ulint srv_n_lock_wait_current_count = 0;
UNIV_INTERN
ib_int64_t
srv_n_lock_wait_time
=
0
;
UNIV_INTERN
ulint
srv_n_lock_max_wait_time
=
0
;
UNIV_INTERN
ulint
srv_truncated_status_writes
=
0
;
/*
Set the following to 0 if you want InnoDB to write messages on
...
...
@@ -2032,6 +2033,7 @@ srv_export_innodb_status(void)
export_vars
.
innodb_rows_inserted
=
srv_n_rows_inserted
;
export_vars
.
innodb_rows_updated
=
srv_n_rows_updated
;
export_vars
.
innodb_rows_deleted
=
srv_n_rows_deleted
;
export_vars
.
innodb_truncated_status_writes
=
srv_truncated_status_writes
;
mutex_exit
(
&
srv_innodb_monitor_mutex
);
}
...
...
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