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
2565c02c
Commit
2565c02c
authored
Jan 22, 2019
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary type casts
parent
5c159c90
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
storage/innobase/os/os0file.cc
storage/innobase/os/os0file.cc
+6
-4
No files found.
storage/innobase/os/os0file.cc
View file @
2565c02c
...
...
@@ -2,7 +2,7 @@
Copyright (c) 1995, 2017, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2009, Percona Inc.
Copyright (c) 2013, 201
8
, MariaDB Corporation.
Copyright (c) 2013, 201
9
, MariaDB Corporation.
Portions of this file contain modifications contributed and copyrighted
by Percona Inc.. Those modifications are
...
...
@@ -1766,6 +1766,8 @@ LinuxAIOHandler::resubmit(Slot* slot)
slot
->
n_bytes
=
0
;
slot
->
io_already_done
=
false
;
compile_time_assert
(
sizeof
(
off_t
)
>=
sizeof
(
os_offset_t
));
struct
iocb
*
iocb
=
&
slot
->
control
;
if
(
slot
->
type
.
is_read
())
{
...
...
@@ -1775,7 +1777,7 @@ LinuxAIOHandler::resubmit(Slot* slot)
slot
->
file
,
slot
->
ptr
,
slot
->
len
,
s
tatic_cast
<
off_t
>
(
slot
->
offset
)
);
s
lot
->
offset
);
}
else
{
ut_a
(
slot
->
type
.
is_write
());
...
...
@@ -1785,7 +1787,7 @@ LinuxAIOHandler::resubmit(Slot* slot)
slot
->
file
,
slot
->
ptr
,
slot
->
len
,
s
tatic_cast
<
off_t
>
(
slot
->
offset
)
);
s
lot
->
offset
);
}
iocb
->
data
=
slot
;
...
...
@@ -6316,7 +6318,7 @@ AIO::reserve_slot(
#ifdef _WIN32
slot
->
len
=
static_cast
<
DWORD
>
(
len
);
#else
slot
->
len
=
static_cast
<
ulint
>
(
len
)
;
slot
->
len
=
len
;
#endif
/* _WIN32 */
slot
->
type
=
type
;
slot
->
buf
=
static_cast
<
byte
*>
(
buf
);
...
...
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