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
fb0fcab3
Commit
fb0fcab3
authored
Jan 10, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-5.0
into hasky.mysql.fi:/home/jani/mysql-5.0
parents
ffc206d9
26e7bf4a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
11 deletions
+14
-11
sql/sql_class.cc
sql/sql_class.cc
+6
-1
sql/sql_parse.cc
sql/sql_parse.cc
+8
-10
No files found.
sql/sql_class.cc
View file @
fb0fcab3
...
@@ -445,7 +445,12 @@ THD::~THD()
...
@@ -445,7 +445,12 @@ THD::~THD()
/*
/*
Add to one status variable another status variable
Add all status variables to another status variable array
SYNOPSIS
add_to_status()
to_var add to this array
from_var from this array
NOTES
NOTES
This function assumes that all variables are long/ulong.
This function assumes that all variables are long/ulong.
...
...
sql/sql_parse.cc
View file @
fb0fcab3
...
@@ -73,7 +73,7 @@ static void decrease_user_connections(USER_CONN *uc);
...
@@ -73,7 +73,7 @@ static void decrease_user_connections(USER_CONN *uc);
static
bool
check_db_used
(
THD
*
thd
,
TABLE_LIST
*
tables
);
static
bool
check_db_used
(
THD
*
thd
,
TABLE_LIST
*
tables
);
static
bool
check_multi_update_lock
(
THD
*
thd
);
static
bool
check_multi_update_lock
(
THD
*
thd
);
static
void
remove_escape
(
char
*
name
);
static
void
remove_escape
(
char
*
name
);
static
void
refresh_status
(
voi
d
);
static
void
refresh_status
(
THD
*
th
d
);
static
bool
append_file_to_dir
(
THD
*
thd
,
const
char
**
filename_ptr
,
static
bool
append_file_to_dir
(
THD
*
thd
,
const
char
**
filename_ptr
,
const
char
*
table_name
);
const
char
*
table_name
);
...
@@ -6538,7 +6538,7 @@ bool reload_acl_and_cache(THD *thd, ulong options, TABLE_LIST *tables,
...
@@ -6538,7 +6538,7 @@ bool reload_acl_and_cache(THD *thd, ulong options, TABLE_LIST *tables,
if
(
options
&
REFRESH_HOSTS
)
if
(
options
&
REFRESH_HOSTS
)
hostname_cache_refresh
();
hostname_cache_refresh
();
if
(
thd
&&
(
options
&
REFRESH_STATUS
))
if
(
thd
&&
(
options
&
REFRESH_STATUS
))
refresh_status
();
refresh_status
(
thd
);
if
(
options
&
REFRESH_THREADS
)
if
(
options
&
REFRESH_THREADS
)
flush_thread_cache
();
flush_thread_cache
();
#ifdef HAVE_REPLICATION
#ifdef HAVE_REPLICATION
...
@@ -6624,20 +6624,18 @@ void kill_one_thread(THD *thd, ulong id, bool only_kill_query)
...
@@ -6624,20 +6624,18 @@ void kill_one_thread(THD *thd, ulong id, bool only_kill_query)
/* Clear most status variables */
/* Clear most status variables */
static
void
refresh_status
(
voi
d
)
static
void
refresh_status
(
THD
*
th
d
)
{
{
pthread_mutex_lock
(
&
LOCK_status
);
pthread_mutex_lock
(
&
LOCK_status
);
/* We must update the global status before cleaning up the thread */
add_to_status
(
&
global_status_var
,
&
thd
->
status_var
);
bzero
((
char
*
)
&
thd
->
status_var
,
sizeof
(
thd
->
status_var
));
for
(
struct
show_var_st
*
ptr
=
status_vars
;
ptr
->
name
;
ptr
++
)
for
(
struct
show_var_st
*
ptr
=
status_vars
;
ptr
->
name
;
ptr
++
)
{
{
if
(
ptr
->
type
==
SHOW_LONG
)
if
(
ptr
->
type
==
SHOW_LONG
)
*
(
ulong
*
)
ptr
->
value
=
0
;
*
(
ulong
*
)
ptr
->
value
=
0
;
else
if
(
ptr
->
type
==
SHOW_LONG_STATUS
)
{
THD
*
thd
=
current_thd
;
/* We must update the global status before cleaning up the thread */
add_to_status
(
&
global_status_var
,
&
thd
->
status_var
);
bzero
((
char
*
)
&
thd
->
status_var
,
sizeof
(
thd
->
status_var
));
}
}
}
/* Reset the counters of all key caches (default and named). */
/* Reset the counters of all key caches (default and named). */
process_key_caches
(
reset_key_cache_counters
);
process_key_caches
(
reset_key_cache_counters
);
...
...
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