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
d60b10d5
Commit
d60b10d5
authored
Feb 13, 2006
by
kent@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mysqlimport.c:
Removed C++ comment, changed types for pthread_create() usage
parent
bb1ba4bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
client/mysqlimport.c
client/mysqlimport.c
+4
-4
No files found.
client/mysqlimport.c
View file @
d60b10d5
...
...
@@ -510,9 +510,9 @@ static char *field_escape(char *to,const char *from,uint length)
}
int
worker_thread
(
char
*
raw_table_name
)
pthread_handler_t
worker_thread
(
void
*
arg
)
{
char
*
raw_table_name
=
(
char
*
)
arg
;
MYSQL
*
sock
=
0
;
if
(
!
(
sock
=
db_connect
(
current_host
,
current_db
,
current_user
,
opt_password
)))
{
...
...
@@ -562,7 +562,7 @@ int main(int argc, char **argv)
pthread_attr_t
attr
;
/* Thread attributes */
VOID
(
pthread_mutex_init
(
&
counter_mutex
,
NULL
));
for
(;
*
argv
!=
NULL
;
argv
++
)
/
/ Loop through tables
for
(;
*
argv
!=
NULL
;
argv
++
)
/
* Loop through tables */
{
/*
If we hit thread count limit we loop until some threads exit.
...
...
@@ -583,7 +583,7 @@ sanity_label:
PTHREAD_CREATE_DETACHED
);
/* now create the thread */
if
(
pthread_create
(
&
mainthread
,
&
attr
,
(
void
*
)
worker_thread
,
if
(
pthread_create
(
&
mainthread
,
&
attr
,
worker_thread
,
(
void
*
)
*
argv
)
!=
0
)
{
pthread_mutex_lock
(
&
counter_mutex
);
...
...
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