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
d9789718
Commit
d9789718
authored
Jan 04, 2020
by
Eugene Kosov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bling windows build fix
parent
ccd87d34
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
storage/innobase/log/log0log.cc
storage/innobase/log/log0log.cc
+6
-6
storage/innobase/log/log0recv.cc
storage/innobase/log/log0recv.cc
+1
-1
No files found.
storage/innobase/log/log0log.cc
View file @
d9789718
...
...
@@ -615,8 +615,8 @@ void log_t::files::read(size_t total_offset, span<byte> buf)
{
ut_ad
(
files
.
size
()
==
file_names
.
size
());
const
size_t
file_idx
=
total_offset
/
file_size
;
const
size_t
offset
=
total_offset
%
file_size
;
const
size_t
file_idx
=
total_offset
/
static_cast
<
size_t
>
(
file_size
)
;
const
size_t
offset
=
total_offset
%
static_cast
<
size_t
>
(
file_size
)
;
if
(
const
dberr_t
err
=
os_file_read
(
IORequestRead
,
files
[
file_idx
],
buf
.
data
(),
offset
,
buf
.
size
()))
...
...
@@ -630,8 +630,8 @@ void log_t::files::write(size_t total_offset, span<byte> buf)
{
ut_ad
(
files
.
size
()
==
file_names
.
size
());
const
size_t
file_idx
=
total_offset
/
file_size
;
const
size_t
offset
=
total_offset
%
file_size
;
const
size_t
file_idx
=
total_offset
/
static_cast
<
size_t
>
(
file_size
)
;
const
size_t
offset
=
total_offset
%
static_cast
<
size_t
>
(
file_size
)
;
if
(
const
dberr_t
err
=
os_file_write
(
IORequestWrite
,
file_names
[
file_idx
].
c_str
(),
...
...
@@ -735,7 +735,7 @@ log_file_header_flush(
srv_stats
.
os_log_pending_writes
.
inc
();
log_sys
.
log
.
write
(
dest_offset
,
buf
);
log_sys
.
log
.
write
(
static_cast
<
size_t
>
(
dest_offset
)
,
buf
);
srv_stats
.
os_log_pending_writes
.
dec
();
}
...
...
@@ -836,7 +836,7 @@ log_write_buf(
ut_a
((
next_offset
>>
srv_page_size_shift
)
<=
ULINT_MAX
);
log_sys
.
log
.
write
(
next_offset
,
{
buf
,
write_len
});
log_sys
.
log
.
write
(
static_cast
<
size_t
>
(
next_offset
)
,
{
buf
,
write_len
});
srv_stats
.
os_log_pending_writes
.
dec
();
...
...
storage/innobase/log/log0recv.cc
View file @
d9789718
...
...
@@ -899,7 +899,7 @@ bool log_t::files::read_log_seg(lsn_t* start_lsn, lsn_t end_lsn)
ut_a
((
source_offset
>>
srv_page_size_shift
)
<=
ULINT_MAX
);
log_sys
.
log
.
read
(
s
ource_offset
,
{
buf
,
len
});
log_sys
.
log
.
read
(
s
tatic_cast
<
size_t
>
(
source_offset
)
,
{
buf
,
len
});
for
(
ulint
l
=
0
;
l
<
len
;
l
+=
OS_FILE_LOG_BLOCK_SIZE
,
buf
+=
OS_FILE_LOG_BLOCK_SIZE
,
...
...
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