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
068f1f7d
Commit
068f1f7d
authored
Jun 09, 2007
by
gluh@mysql.com/eagle.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#28149 overflow in some "SHOW STATUS"-variables
changed bytes_received, bytes_sent status variables to longlong
parent
47ecabe9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
5 deletions
+8
-5
sql/mysqld.cc
sql/mysqld.cc
+2
-2
sql/sql_class.h
sql/sql_class.h
+2
-2
sql/sql_show.cc
sql/sql_show.cc
+2
-0
sql/structs.h
sql/structs.h
+2
-1
No files found.
sql/mysqld.cc
View file @
068f1f7d
...
...
@@ -6190,8 +6190,8 @@ struct show_var_st status_vars[]= {
{
"Aborted_connects"
,
(
char
*
)
&
aborted_connects
,
SHOW_LONG
},
{
"Binlog_cache_disk_use"
,
(
char
*
)
&
binlog_cache_disk_use
,
SHOW_LONG
},
{
"Binlog_cache_use"
,
(
char
*
)
&
binlog_cache_use
,
SHOW_LONG
},
{
"Bytes_received"
,
(
char
*
)
offsetof
(
STATUS_VAR
,
bytes_received
),
SHOW_LONG_STATUS
},
{
"Bytes_sent"
,
(
char
*
)
offsetof
(
STATUS_VAR
,
bytes_sent
),
SHOW_LONG_STATUS
},
{
"Bytes_received"
,
(
char
*
)
offsetof
(
STATUS_VAR
,
bytes_received
),
SHOW_LONG
LONG
_STATUS
},
{
"Bytes_sent"
,
(
char
*
)
offsetof
(
STATUS_VAR
,
bytes_sent
),
SHOW_LONG
LONG
_STATUS
},
{
"Com_admin_commands"
,
(
char
*
)
offsetof
(
STATUS_VAR
,
com_other
),
SHOW_LONG_STATUS
},
{
"Com_alter_db"
,
(
char
*
)
offsetof
(
STATUS_VAR
,
com_stat
[(
uint
)
SQLCOM_ALTER_DB
]),
SHOW_LONG_STATUS
},
{
"Com_alter_table"
,
(
char
*
)
offsetof
(
STATUS_VAR
,
com_stat
[(
uint
)
SQLCOM_ALTER_TABLE
]),
SHOW_LONG_STATUS
},
...
...
sql/sql_class.h
View file @
068f1f7d
...
...
@@ -606,8 +606,8 @@ struct system_variables
typedef
struct
system_status_var
{
ulong
bytes_received
;
ulong
bytes_sent
;
ulong
long
bytes_received
;
ulong
long
bytes_sent
;
ulong
com_other
;
ulong
com_stat
[(
uint
)
SQLCOM_END
];
ulong
created_tmp_disk_tables
;
...
...
sql/sql_show.cc
View file @
068f1f7d
...
...
@@ -1463,6 +1463,8 @@ static bool show_status_array(THD *thd, const char *wild,
case
SHOW_LONG_CONST
:
end
=
int10_to_str
(
*
(
long
*
)
value
,
buff
,
10
);
break
;
case
SHOW_LONGLONG_STATUS
:
value
=
((
char
*
)
status_var
+
(
ulonglong
)
value
);
case
SHOW_LONGLONG
:
end
=
longlong10_to_str
(
*
(
longlong
*
)
value
,
buff
,
10
);
break
;
...
...
sql/structs.h
View file @
068f1f7d
...
...
@@ -190,7 +190,8 @@ enum SHOW_TYPE
SHOW_NET_COMPRESSION
,
SHOW_RPL_STATUS
,
SHOW_SLAVE_RUNNING
,
SHOW_SLAVE_RETRIED_TRANS
,
SHOW_KEY_CACHE_LONG
,
SHOW_KEY_CACHE_CONST_LONG
,
SHOW_KEY_CACHE_LONGLONG
,
SHOW_LONG_STATUS
,
SHOW_LONG_CONST_STATUS
,
SHOW_SLAVE_SKIP_ERRORS
SHOW_LONG_STATUS
,
SHOW_LONG_CONST_STATUS
,
SHOW_SLAVE_SKIP_ERRORS
,
SHOW_LONGLONG_STATUS
};
enum
SHOW_COMP_OPTION
{
SHOW_OPTION_YES
,
SHOW_OPTION_NO
,
SHOW_OPTION_DISABLED
};
...
...
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