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
59db4438
Commit
59db4438
authored
May 26, 2005
by
sergefp@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/psergey/mysql-5.0-conf-fixes-2
parents
5178c84b
41c8f461
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
9 additions
and
7 deletions
+9
-7
sql/mysql_priv.h
sql/mysql_priv.h
+0
-1
sql/mysqld.cc
sql/mysqld.cc
+1
-2
sql/sql_class.cc
sql/sql_class.cc
+1
-0
sql/sql_class.h
sql/sql_class.h
+2
-0
sql/sql_select.cc
sql/sql_select.cc
+1
-2
sql/sql_show.cc
sql/sql_show.cc
+2
-1
sql/structs.h
sql/structs.h
+2
-1
No files found.
sql/mysql_priv.h
View file @
59db4438
...
@@ -1059,7 +1059,6 @@ extern char language[FN_REFLEN], reg_ext[FN_EXTLEN];
...
@@ -1059,7 +1059,6 @@ extern char language[FN_REFLEN], reg_ext[FN_EXTLEN];
extern
char
glob_hostname
[
FN_REFLEN
],
mysql_home
[
FN_REFLEN
];
extern
char
glob_hostname
[
FN_REFLEN
],
mysql_home
[
FN_REFLEN
];
extern
char
pidfile_name
[
FN_REFLEN
],
system_time_zone
[
30
],
*
opt_init_file
;
extern
char
pidfile_name
[
FN_REFLEN
],
system_time_zone
[
30
],
*
opt_init_file
;
extern
char
log_error_file
[
FN_REFLEN
],
*
opt_tc_log_file
;
extern
char
log_error_file
[
FN_REFLEN
],
*
opt_tc_log_file
;
extern
double
last_query_cost
;
extern
double
log_10
[
32
];
extern
double
log_10
[
32
];
extern
ulonglong
log_10_int
[
20
];
extern
ulonglong
log_10_int
[
20
];
extern
ulonglong
keybuff_size
;
extern
ulonglong
keybuff_size
;
...
...
sql/mysqld.cc
View file @
59db4438
...
@@ -368,7 +368,6 @@ ulong thread_id=1L,current_pid;
...
@@ -368,7 +368,6 @@ ulong thread_id=1L,current_pid;
ulong
slow_launch_threads
=
0
,
sync_binlog_period
;
ulong
slow_launch_threads
=
0
,
sync_binlog_period
;
ulong
expire_logs_days
=
0
;
ulong
expire_logs_days
=
0
;
ulong
rpl_recovery_rank
=
0
;
ulong
rpl_recovery_rank
=
0
;
double
last_query_cost
=
-
1
;
/* -1 denotes that no query was compiled yet */
double
log_10
[
32
];
/* 10 potences */
double
log_10
[
32
];
/* 10 potences */
time_t
start_time
;
time_t
start_time
;
...
@@ -5727,7 +5726,7 @@ struct show_var_st status_vars[]= {
...
@@ -5727,7 +5726,7 @@ struct show_var_st status_vars[]= {
{
"Key_reads"
,
(
char
*
)
&
dflt_key_cache_var
.
global_cache_read
,
SHOW_KEY_CACHE_LONG
},
{
"Key_reads"
,
(
char
*
)
&
dflt_key_cache_var
.
global_cache_read
,
SHOW_KEY_CACHE_LONG
},
{
"Key_write_requests"
,
(
char
*
)
&
dflt_key_cache_var
.
global_cache_w_requests
,
SHOW_KEY_CACHE_LONG
},
{
"Key_write_requests"
,
(
char
*
)
&
dflt_key_cache_var
.
global_cache_w_requests
,
SHOW_KEY_CACHE_LONG
},
{
"Key_writes"
,
(
char
*
)
&
dflt_key_cache_var
.
global_cache_write
,
SHOW_KEY_CACHE_LONG
},
{
"Key_writes"
,
(
char
*
)
&
dflt_key_cache_var
.
global_cache_write
,
SHOW_KEY_CACHE_LONG
},
{
"Last_query_cost"
,
(
char
*
)
&
last_query_cost
,
SHOW_DOUBLE
},
{
"Last_query_cost"
,
(
char
*
)
offsetof
(
STATUS_VAR
,
last_query_cost
),
SHOW_DOUBLE_STATUS
},
{
"Max_used_connections"
,
(
char
*
)
&
max_used_connections
,
SHOW_LONG
},
{
"Max_used_connections"
,
(
char
*
)
&
max_used_connections
,
SHOW_LONG
},
#ifdef HAVE_NDBCLUSTER_DB
#ifdef HAVE_NDBCLUSTER_DB
{
"Ndb_"
,
(
char
*
)
&
ndb_status_variables
,
SHOW_VARS
},
{
"Ndb_"
,
(
char
*
)
&
ndb_status_variables
,
SHOW_VARS
},
...
...
sql/sql_class.cc
View file @
59db4438
...
@@ -444,6 +444,7 @@ void add_to_status(STATUS_VAR *to_var, STATUS_VAR *from_var)
...
@@ -444,6 +444,7 @@ void add_to_status(STATUS_VAR *to_var, STATUS_VAR *from_var)
while
(
to
!=
end
)
while
(
to
!=
end
)
*
(
to
++
)
+=
*
(
from
++
);
*
(
to
++
)
+=
*
(
from
++
);
/* it doesn't make sense to add last_query_cost values */
}
}
...
...
sql/sql_class.h
View file @
59db4438
...
@@ -635,6 +635,8 @@ typedef struct system_status_var
...
@@ -635,6 +635,8 @@ typedef struct system_status_var
ulong
filesort_range_count
;
ulong
filesort_range_count
;
ulong
filesort_rows
;
ulong
filesort_rows
;
ulong
filesort_scan_count
;
ulong
filesort_scan_count
;
double
last_query_cost
;
}
STATUS_VAR
;
}
STATUS_VAR
;
/*
/*
...
...
sql/sql_select.cc
View file @
59db4438
...
@@ -3796,8 +3796,7 @@ choose_plan(JOIN *join, table_map join_tables)
...
@@ -3796,8 +3796,7 @@ choose_plan(JOIN *join, table_map join_tables)
Don't update last_query_cost for 'show status' command
Don't update last_query_cost for 'show status' command
*/
*/
if
(
join
->
thd
->
lex
->
orig_sql_command
!=
SQLCOM_SHOW_STATUS
)
if
(
join
->
thd
->
lex
->
orig_sql_command
!=
SQLCOM_SHOW_STATUS
)
last_query_cost
=
join
->
best_read
;
join
->
thd
->
status_var
.
last_query_cost
=
join
->
best_read
;
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
}
}
...
...
sql/sql_show.cc
View file @
59db4438
...
@@ -1382,8 +1382,9 @@ static bool show_status_array(THD *thd, const char *wild,
...
@@ -1382,8 +1382,9 @@ static bool show_status_array(THD *thd, const char *wild,
end
=
strend
(
pos
);
end
=
strend
(
pos
);
break
;
break
;
}
}
case
SHOW_DOUBLE
:
case
SHOW_DOUBLE
_STATUS
:
{
{
value
=
((
char
*
)
status_var
+
(
ulong
)
value
);
end
=
buff
+
sprintf
(
buff
,
"%f"
,
*
(
double
*
)
value
);
end
=
buff
+
sprintf
(
buff
,
"%f"
,
*
(
double
*
)
value
);
break
;
break
;
}
}
...
...
sql/structs.h
View file @
59db4438
...
@@ -164,7 +164,8 @@ typedef struct st_known_date_time_format {
...
@@ -164,7 +164,8 @@ typedef struct st_known_date_time_format {
enum
SHOW_TYPE
enum
SHOW_TYPE
{
{
SHOW_UNDEF
,
SHOW_UNDEF
,
SHOW_LONG
,
SHOW_LONGLONG
,
SHOW_INT
,
SHOW_CHAR
,
SHOW_CHAR_PTR
,
SHOW_DOUBLE
,
SHOW_LONG
,
SHOW_LONGLONG
,
SHOW_INT
,
SHOW_CHAR
,
SHOW_CHAR_PTR
,
SHOW_DOUBLE_STATUS
,
SHOW_BOOL
,
SHOW_MY_BOOL
,
SHOW_OPENTABLES
,
SHOW_STARTTIME
,
SHOW_QUESTION
,
SHOW_BOOL
,
SHOW_MY_BOOL
,
SHOW_OPENTABLES
,
SHOW_STARTTIME
,
SHOW_QUESTION
,
SHOW_LONG_CONST
,
SHOW_INT_CONST
,
SHOW_HAVE
,
SHOW_SYS
,
SHOW_HA_ROWS
,
SHOW_LONG_CONST
,
SHOW_INT_CONST
,
SHOW_HAVE
,
SHOW_SYS
,
SHOW_HA_ROWS
,
SHOW_VARS
,
SHOW_VARS
,
...
...
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