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
94978c21
Commit
94978c21
authored
Feb 04, 2005
by
msvensson@neptunus.homeip.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated after review.
parent
e54ea918
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+8
-7
No files found.
sql/ha_ndbcluster.cc
View file @
94978c21
...
@@ -4537,13 +4537,13 @@ bool ndbcluster_init()
...
@@ -4537,13 +4537,13 @@ bool ndbcluster_init()
(
void
)
hash_init
(
&
ndbcluster_open_tables
,
system_charset_info
,
32
,
0
,
0
,
(
void
)
hash_init
(
&
ndbcluster_open_tables
,
system_charset_info
,
32
,
0
,
0
,
(
hash_get_key
)
ndbcluster_get_key
,
0
,
0
);
(
hash_get_key
)
ndbcluster_get_key
,
0
,
0
);
pthread_mutex_init
(
&
ndbcluster_mutex
,
MY_MUTEX_INIT_FAST
);
pthread_mutex_init
(
&
ndbcluster_mutex
,
MY_MUTEX_INIT_FAST
);
pthread_mutex_init
(
&
LOCK_ndb_util_thread
,
MY_MUTEX_INIT_FAST
);
pthread_mutex_init
(
&
LOCK_ndb_util_thread
,
MY_MUTEX_INIT_FAST
);
pthread_cond_init
(
&
COND_ndb_util_thread
,
NULL
);
pthread_cond_init
(
&
COND_ndb_util_thread
,
NULL
);
// Create utility thread
// Create utility thread
pthread_t
tmp
;
pthread_t
tmp
;
if
(
pthread_create
(
&
tmp
,
&
connection_attrib
,
ndb_util_thread_func
,
0
))
if
(
pthread_create
(
&
tmp
,
&
connection_attrib
,
ndb_util_thread_func
,
0
))
{
{
DBUG_PRINT
(
"error"
,
(
"Could not create ndb utility thread"
));
DBUG_PRINT
(
"error"
,
(
"Could not create ndb utility thread"
));
goto
ndbcluster_init_error
;
goto
ndbcluster_init_error
;
...
@@ -4570,7 +4570,7 @@ bool ndbcluster_end()
...
@@ -4570,7 +4570,7 @@ bool ndbcluster_end()
// Kill ndb utility thread
// Kill ndb utility thread
(
void
)
pthread_mutex_lock
(
&
LOCK_ndb_util_thread
);
(
void
)
pthread_mutex_lock
(
&
LOCK_ndb_util_thread
);
DBUG_PRINT
(
"exit"
,(
"killing ndb util thread: %lx"
,
ndb_util_thread
));
DBUG_PRINT
(
"exit"
,(
"killing ndb util thread: %lx"
,
ndb_util_thread
));
(
void
)
pthread_cond_signal
(
&
COND_ndb_util_thread
);
(
void
)
pthread_cond_signal
(
&
COND_ndb_util_thread
);
(
void
)
pthread_mutex_unlock
(
&
LOCK_ndb_util_thread
);
(
void
)
pthread_mutex_unlock
(
&
LOCK_ndb_util_thread
);
...
@@ -5597,7 +5597,8 @@ ha_ndbcluster::update_table_comment(
...
@@ -5597,7 +5597,8 @@ ha_ndbcluster::update_table_comment(
// Utility thread main loop
// Utility thread main loop
extern
"C"
pthread_handler_decl
(
ndb_util_thread_func
,
arg
__attribute__
((
unused
)))
extern
"C"
pthread_handler_decl
(
ndb_util_thread_func
,
arg
__attribute__
((
unused
)))
{
{
THD
*
thd
;
// needs to be first for thread_stack
THD
*
thd
;
// needs to be first for thread_stack
int
error
=
0
;
int
error
=
0
;
...
@@ -5628,8 +5629,8 @@ extern "C" pthread_handler_decl(ndb_util_thread_func,arg __attribute__((unused))
...
@@ -5628,8 +5629,8 @@ extern "C" pthread_handler_decl(ndb_util_thread_func,arg __attribute__((unused))
pthread_mutex_lock
(
&
LOCK_ndb_util_thread
);
pthread_mutex_lock
(
&
LOCK_ndb_util_thread
);
error
=
pthread_cond_timedwait
(
&
COND_ndb_util_thread
,
error
=
pthread_cond_timedwait
(
&
COND_ndb_util_thread
,
&
LOCK_ndb_util_thread
,
&
LOCK_ndb_util_thread
,
&
abstime
);
&
abstime
);
pthread_mutex_unlock
(
&
LOCK_ndb_util_thread
);
pthread_mutex_unlock
(
&
LOCK_ndb_util_thread
);
DBUG_PRINT
(
"ndb_util_thread"
,
(
"Started, ndb_cache_check_time: %d"
,
DBUG_PRINT
(
"ndb_util_thread"
,
(
"Started, ndb_cache_check_time: %d"
,
...
...
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