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
937ec3c4
Commit
937ec3c4
authored
Apr 08, 2019
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-19212: After-merge fix for sizeof(ulong)!=sizeof(ulint)
parent
ee7a4f44
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
storage/innobase/buf/buf0buf.cc
storage/innobase/buf/buf0buf.cc
+5
-5
storage/innobase/log/log0log.cc
storage/innobase/log/log0log.cc
+2
-2
No files found.
storage/innobase/buf/buf0buf.cc
View file @
937ec3c4
...
...
@@ -1568,12 +1568,12 @@ buf_chunk_init(
/* Round down to a multiple of page size,
although it already should be. */
mem_size
=
ut_2pow_round
(
mem_size
,
ulint
(
srv_page_size
)
);
mem_size
=
ut_2pow_round
<
ulint
>
(
mem_size
,
srv_page_size
);
/* Reserve space for the block descriptors. */
mem_size
+=
ut_2pow_round
((
mem_size
>>
srv_page_size_shift
)
*
(
sizeof
*
block
)
+
(
srv_page_size
-
1
),
ulint
(
srv_page_size
)
);
mem_size
+=
ut_2pow_round
<
ulint
>
((
mem_size
>>
srv_page_size_shift
)
*
(
sizeof
*
block
)
+
(
srv_page_size
-
1
),
srv_page_size
);
DBUG_EXECUTE_IF
(
"ib_buf_chunk_init_fails"
,
return
(
NULL
););
...
...
storage/innobase/log/log0log.cc
View file @
937ec3c4
...
...
@@ -897,8 +897,8 @@ log_buffer_switch()
ut_ad
(
log_write_mutex_own
());
const
byte
*
old_buf
=
log_sys
.
buf
;
ul
int
area_end
=
ut_calc_align
(
log_sys
.
buf_free
,
ul
int
(
OS_FILE_LOG_BLOCK_SIZE
));
ul
ong
area_end
=
ut_calc_align
(
log_sys
.
buf_free
,
ul
ong
(
OS_FILE_LOG_BLOCK_SIZE
));
if
(
log_sys
.
first_in_use
)
{
log_sys
.
first_in_use
=
false
;
...
...
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