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
f1fe6e17
Commit
f1fe6e17
authored
Dec 21, 2004
by
heikki@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Plain Diff
Merge hundin.mysql.fi:/home/heikki/mysql-4.0
into hundin.mysql.fi:/home/heikki/mysql-4.1
parents
8f2579c6
b56085a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
innobase/os/os0file.c
innobase/os/os0file.c
+8
-6
No files found.
innobase/os/os0file.c
View file @
f1fe6e17
...
@@ -1850,6 +1850,7 @@ os_file_pread(
...
@@ -1850,6 +1850,7 @@ os_file_pread(
return
(
n_bytes
);
return
(
n_bytes
);
#else
#else
{
{
off_t
ret_offset
;
ssize_t
ret
;
ssize_t
ret
;
ulint
i
;
ulint
i
;
...
@@ -1858,12 +1859,12 @@ os_file_pread(
...
@@ -1858,12 +1859,12 @@ os_file_pread(
os_mutex_enter
(
os_file_seek_mutexes
[
i
]);
os_mutex_enter
(
os_file_seek_mutexes
[
i
]);
ret
=
lseek
(
file
,
offs
,
0
);
ret
_offset
=
lseek
(
file
,
offs
,
SEEK_SET
);
if
(
ret
<
0
)
{
if
(
ret
_offset
<
0
)
{
os_mutex_exit
(
os_file_seek_mutexes
[
i
]);
os_mutex_exit
(
os_file_seek_mutexes
[
i
]);
return
(
ret
);
return
(
-
1
);
}
}
ret
=
read
(
file
,
buf
,
(
ssize_t
)
n
);
ret
=
read
(
file
,
buf
,
(
ssize_t
)
n
);
...
@@ -1936,6 +1937,7 @@ os_file_pwrite(
...
@@ -1936,6 +1937,7 @@ os_file_pwrite(
return
(
ret
);
return
(
ret
);
#else
#else
{
{
off_t
ret_offset
;
ulint
i
;
ulint
i
;
/* Protect the seek / write operation with a mutex */
/* Protect the seek / write operation with a mutex */
...
@@ -1943,12 +1945,12 @@ os_file_pwrite(
...
@@ -1943,12 +1945,12 @@ os_file_pwrite(
os_mutex_enter
(
os_file_seek_mutexes
[
i
]);
os_mutex_enter
(
os_file_seek_mutexes
[
i
]);
ret
=
lseek
(
file
,
offs
,
0
);
ret
_offset
=
lseek
(
file
,
offs
,
SEEK_SET
);
if
(
ret
<
0
)
{
if
(
ret
_offset
<
0
)
{
os_mutex_exit
(
os_file_seek_mutexes
[
i
]);
os_mutex_exit
(
os_file_seek_mutexes
[
i
]);
return
(
ret
);
return
(
-
1
);
}
}
ret
=
write
(
file
,
buf
,
(
ssize_t
)
n
);
ret
=
write
(
file
,
buf
,
(
ssize_t
)
n
);
...
...
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