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
c9442b67
Commit
c9442b67
authored
Nov 20, 2009
by
Mikael Ronstrom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WL#5138, review fixes
parent
b6c1ecb3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
sql/event_scheduler.cc
sql/event_scheduler.cc
+9
-9
sql/mysql_priv.h
sql/mysql_priv.h
+2
-2
sql/mysqld.cc
sql/mysqld.cc
+1
-1
No files found.
sql/event_scheduler.cc
View file @
c9442b67
...
@@ -158,12 +158,12 @@ deinit_event_thread(THD *thd)
...
@@ -158,12 +158,12 @@ deinit_event_thread(THD *thd)
DBUG_PRINT
(
"exit"
,
(
"Event thread finishing"
));
DBUG_PRINT
(
"exit"
,
(
"Event thread finishing"
));
pthread_mutex_lock
(
&
LOCK_thread_count
);
pthread_mutex_lock
(
&
LOCK_thread_count
);
thread_count
--
;
thread_count
--
;
delete
thd
;
pthread_cond_broadcast
(
&
COND_thread_count
);
pthread_mutex_unlock
(
&
LOCK_thread_count
);
my_atomic_rwlock_wrlock
(
&
global_query_id_lock
);
my_atomic_rwlock_wrlock
(
&
global_query_id_lock
);
dec_thread_running
();
dec_thread_running
();
my_atomic_rwlock_wrunlock
(
&
global_query_id_lock
);
my_atomic_rwlock_wrunlock
(
&
global_query_id_lock
);
delete
thd
;
pthread_cond_broadcast
(
&
COND_thread_count
);
pthread_mutex_unlock
(
&
LOCK_thread_count
);
}
}
...
@@ -421,12 +421,12 @@ Event_scheduler::start()
...
@@ -421,12 +421,12 @@ Event_scheduler::start()
net_end
(
&
new_thd
->
net
);
net_end
(
&
new_thd
->
net
);
pthread_mutex_lock
(
&
LOCK_thread_count
);
pthread_mutex_lock
(
&
LOCK_thread_count
);
thread_count
--
;
thread_count
--
;
delete
new_thd
;
pthread_cond_broadcast
(
&
COND_thread_count
);
pthread_mutex_unlock
(
&
LOCK_thread_count
);
my_atomic_rwlock_wrlock
(
&
global_query_id_lock
);
my_atomic_rwlock_wrlock
(
&
global_query_id_lock
);
dec_thread_running
();
dec_thread_running
();
my_atomic_rwlock_wrunlock
(
&
global_query_id_lock
);
my_atomic_rwlock_wrunlock
(
&
global_query_id_lock
);
delete
new_thd
;
pthread_cond_broadcast
(
&
COND_thread_count
);
pthread_mutex_unlock
(
&
LOCK_thread_count
);
}
}
end:
end:
UNLOCK_DATA
();
UNLOCK_DATA
();
...
@@ -556,12 +556,12 @@ Event_scheduler::execute_top(Event_queue_element_for_exec *event_name)
...
@@ -556,12 +556,12 @@ Event_scheduler::execute_top(Event_queue_element_for_exec *event_name)
net_end
(
&
new_thd
->
net
);
net_end
(
&
new_thd
->
net
);
pthread_mutex_lock
(
&
LOCK_thread_count
);
pthread_mutex_lock
(
&
LOCK_thread_count
);
thread_count
--
;
thread_count
--
;
delete
new_thd
;
pthread_cond_broadcast
(
&
COND_thread_count
);
pthread_mutex_unlock
(
&
LOCK_thread_count
);
my_atomic_rwlock_wrlock
(
&
global_query_id_lock
);
my_atomic_rwlock_wrlock
(
&
global_query_id_lock
);
dec_thread_running
();
dec_thread_running
();
my_atomic_rwlock_wrunlock
(
&
global_query_id_lock
);
my_atomic_rwlock_wrunlock
(
&
global_query_id_lock
);
delete
new_thd
;
pthread_cond_broadcast
(
&
COND_thread_count
);
pthread_mutex_unlock
(
&
LOCK_thread_count
);
}
}
delete
event_name
;
delete
event_name
;
DBUG_RETURN
(
TRUE
);
DBUG_RETURN
(
TRUE
);
...
...
sql/mysql_priv.h
View file @
c9442b67
...
@@ -86,9 +86,9 @@ typedef ulong nesting_map; /* Used for flags of nesting constructs */
...
@@ -86,9 +86,9 @@ typedef ulong nesting_map; /* Used for flags of nesting constructs */
typedef
ulonglong
nested_join_map
;
typedef
ulonglong
nested_join_map
;
/* query_id */
/* query_id */
typedef
int64
query_id_t
;
typedef
u
int64
query_id_t
;
extern
query_id_t
global_query_id
;
extern
query_id_t
global_query_id
;
extern
int32
thread_running
;
extern
u
int32
thread_running
;
extern
my_atomic_rwlock_t
global_query_id_lock
;
extern
my_atomic_rwlock_t
global_query_id_lock
;
/* increment query_id and return it. */
/* increment query_id and return it. */
...
...
sql/mysqld.cc
View file @
c9442b67
...
@@ -532,7 +532,7 @@ uint delay_key_write_options, protocol_version;
...
@@ -532,7 +532,7 @@ uint delay_key_write_options, protocol_version;
uint
lower_case_table_names
;
uint
lower_case_table_names
;
uint
tc_heuristic_recover
=
0
;
uint
tc_heuristic_recover
=
0
;
uint
volatile
thread_count
;
uint
volatile
thread_count
;
int32
thread_running
;
u
int32
thread_running
;
ulonglong
thd_startup_options
;
ulonglong
thd_startup_options
;
ulong
back_log
,
connect_timeout
,
concurrency
,
server_id
;
ulong
back_log
,
connect_timeout
,
concurrency
,
server_id
;
ulong
table_cache_size
,
table_def_size
;
ulong
table_cache_size
,
table_def_size
;
...
...
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