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
35735cfe
Commit
35735cfe
authored
Nov 23, 2005
by
joerg@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge jbruehe@bk-internal.mysql.com:/home/bk/mysql-5.1-new
into mysql.com:/M51/mysql-5.1
parents
415053f2
1d0c2b12
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
storage/ndb/src/common/portlib/NdbThread.c
storage/ndb/src/common/portlib/NdbThread.c
+3
-4
storage/ndb/test/tools/listen.cpp
storage/ndb/test/tools/listen.cpp
+6
-0
No files found.
storage/ndb/src/common/portlib/NdbThread.c
View file @
35735cfe
...
@@ -91,13 +91,15 @@ ndb_thread_wrapper(void* _ss){
...
@@ -91,13 +91,15 @@ ndb_thread_wrapper(void* _ss){
struct
NdbThread
*
NdbThread_Create
(
NDB_THREAD_FUNC
*
p_thread_func
,
struct
NdbThread
*
NdbThread_Create
(
NDB_THREAD_FUNC
*
p_thread_func
,
NDB_THREAD_ARG
*
p_thread_arg
,
NDB_THREAD_ARG
*
p_thread_arg
,
const
NDB_THREAD_STACKSIZE
thread_stack_size
,
const
NDB_THREAD_STACKSIZE
_
thread_stack_size
,
const
char
*
p_thread_name
,
const
char
*
p_thread_name
,
NDB_THREAD_PRIO
thread_prio
)
NDB_THREAD_PRIO
thread_prio
)
{
{
struct
NdbThread
*
tmpThread
;
struct
NdbThread
*
tmpThread
;
int
result
;
int
result
;
pthread_attr_t
thread_attr
;
pthread_attr_t
thread_attr
;
NDB_THREAD_STACKSIZE
thread_stack_size
=
_thread_stack_size
*
SIZEOF_CHARP
/
4
;
DBUG_ENTER
(
"NdbThread_Create"
);
DBUG_ENTER
(
"NdbThread_Create"
);
(
void
)
thread_prio
;
/* remove warning for unused parameter */
(
void
)
thread_prio
;
/* remove warning for unused parameter */
...
@@ -114,9 +116,6 @@ struct NdbThread* NdbThread_Create(NDB_THREAD_FUNC *p_thread_func,
...
@@ -114,9 +116,6 @@ struct NdbThread* NdbThread_Create(NDB_THREAD_FUNC *p_thread_func,
strnmov
(
tmpThread
->
thread_name
,
p_thread_name
,
sizeof
(
tmpThread
->
thread_name
));
strnmov
(
tmpThread
->
thread_name
,
p_thread_name
,
sizeof
(
tmpThread
->
thread_name
));
pthread_attr_init
(
&
thread_attr
);
pthread_attr_init
(
&
thread_attr
);
#if (SIZEOF_CHARP == 8)
thread_stack_size
*=
2
;
#endif
#ifdef PTHREAD_STACK_MIN
#ifdef PTHREAD_STACK_MIN
if
(
thread_stack_size
<
PTHREAD_STACK_MIN
)
if
(
thread_stack_size
<
PTHREAD_STACK_MIN
)
thread_stack_size
=
PTHREAD_STACK_MIN
;
thread_stack_size
=
PTHREAD_STACK_MIN
;
...
...
storage/ndb/test/tools/listen.cpp
View file @
35735cfe
...
@@ -163,6 +163,12 @@ main(int argc, const char** argv){
...
@@ -163,6 +163,12 @@ main(int argc, const char** argv){
case
NdbDictionary
:
:
Event
::
TE_UPDATE
:
case
NdbDictionary
:
:
Event
::
TE_UPDATE
:
cnt_u
++
;
cnt_u
++
;
break
;
break
;
case
NdbDictionary
:
:
Event
::
TE_CLUSTER_FAILURE
:
break
;
case
NdbDictionary
:
:
Event
::
TE_ALTER
:
break
;
case
NdbDictionary
:
:
Event
::
TE_DROP
:
break
;
default:
default:
/* We should REALLY never get here. */
/* We should REALLY never get here. */
ndbout_c
(
"Error: unknown event type"
);
ndbout_c
(
"Error: unknown event type"
);
...
...
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