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
5ded88eb
Commit
5ded88eb
authored
Feb 04, 2022
by
Vladislav Vaintroub
Committed by
Sergei Golubchik
Feb 05, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove incorrect narrowing size_t->ulong casts. Fix printf format error.
parent
4c2c1e61
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
storage/innobase/handler/ha_innodb.cc
storage/innobase/handler/ha_innodb.cc
+5
-5
No files found.
storage/innobase/handler/ha_innodb.cc
View file @
5ded88eb
...
...
@@ -3731,7 +3731,7 @@ static void innodb_buffer_pool_size_init()
{
/* Size unit of buffer pool is larger than srv_buf_pool_size.
adjust srv_buf_pool_chunk_unit for srv_buf_pool_size. */
srv_buf_pool_chunk_unit
=
ulong
(
srv_buf_pool_size
)
;
srv_buf_pool_chunk_unit
=
srv_buf_pool_size
;
}
else
if
(
srv_buf_pool_chunk_unit
==
0
)
{
...
...
@@ -20817,7 +20817,7 @@ innodb_buffer_pool_size_validate(
push_warning_printf
(
thd
,
Sql_condition
::
WARN_LEVEL_WARN
,
ER_WRONG_ARGUMENTS
,
"innodb_buffer_pool_size must be at least"
" innodb_buffer_pool_chunk_size=%
l
u"
,
" innodb_buffer_pool_chunk_size=%
z
u"
,
srv_buf_pool_chunk_unit
);
/* nothing to do */
return
(
0
);
...
...
@@ -21162,12 +21162,12 @@ ulint
buf_pool_size_align
(
ulint
size
)
{
const
ulong
m
=
srv_buf_pool_chunk_unit
;
size
=
ut_max
(
(
size_t
)
size
,
(
size_t
)
MYSQL_SYSVAR_NAME
(
buffer_pool_size
).
min_val
);
const
size_t
m
=
srv_buf_pool_chunk_unit
;
size
=
ut_max
(
size
,
(
size_t
)
MYSQL_SYSVAR_NAME
(
buffer_pool_size
).
min_val
);
if
(
size
%
m
==
0
)
{
return
(
size
);
}
else
{
return
(
ulint
)((
size
/
m
+
1
)
*
m
)
;
return
(
size
/
m
+
1
)
*
m
;
}
}
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