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
3ad2158b
Commit
3ad2158b
authored
May 27, 2004
by
monty@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Portability fixes
parent
5f0d4ee5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
innobase/os/os0thread.c
innobase/os/os0thread.c
+2
-0
myisam/sort.c
myisam/sort.c
+5
-3
No files found.
innobase/os/os0thread.c
View file @
3ad2158b
...
...
@@ -201,6 +201,7 @@ os_thread_exit(
#endif
}
#ifdef HAVE_PTHREAD_JOIN
int
os_thread_join
(
/*=============*/
...
...
@@ -208,6 +209,7 @@ os_thread_join(
{
return
pthread_join
(
thread_id
,
NULL
);
}
#endif
/*********************************************************************
Returns handle to the current thread. */
...
...
myisam/sort.c
View file @
3ad2158b
...
...
@@ -852,7 +852,7 @@ merge_buffers(MI_SORT_PARAM *info, uint keys, IO_CACHE *from_file,
uchar
*
strpos
;
BUFFPEK
*
buffpek
,
**
refpek
;
QUEUE
queue
;
volatile
bool
*
killed
=
killed_ptr
(
info
->
sort_info
->
param
);
volatile
my_
bool
*
killed
=
killed_ptr
(
info
->
sort_info
->
param
);
DBUG_ENTER
(
"merge_buffers"
);
count
=
error
=
0
;
...
...
@@ -873,7 +873,8 @@ merge_buffers(MI_SORT_PARAM *info, uint keys, IO_CACHE *from_file,
count
+=
buffpek
->
count
;
buffpek
->
base
=
strpos
;
buffpek
->
max_keys
=
maxcount
;
strpos
+=
(
uint
)
(
error
=
(
int
)
info
->
read_to_buffer
(
from_file
,
buffpek
,
sort_length
));
strpos
+=
(
uint
)
(
error
=
(
int
)
info
->
read_to_buffer
(
from_file
,
buffpek
,
sort_length
));
if
(
error
==
-
1
)
goto
err
;
/* purecov: inspected */
queue_insert
(
&
queue
,(
char
*
)
buffpek
);
...
...
@@ -890,7 +891,8 @@ merge_buffers(MI_SORT_PARAM *info, uint keys, IO_CACHE *from_file,
buffpek
=
(
BUFFPEK
*
)
queue_top
(
&
queue
);
if
(
to_file
)
{
if
(
info
->
write_key
(
info
,
to_file
,(
byte
*
)
buffpek
->
key
,(
uint
)
sort_length
,
1
))
if
(
info
->
write_key
(
info
,
to_file
,(
byte
*
)
buffpek
->
key
,
(
uint
)
sort_length
,
1
))
{
error
=
1
;
goto
err
;
/* purecov: inspected */
}
...
...
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