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
0d1ca193
Commit
0d1ca193
authored
5 years ago
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
One more fixup for sizeof(mtr_t) reduction
Add explicit casts when assigning ulint to m_user_space_id.
parent
91e7b443
Branches unavailable
Tags unavailable
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
storage/innobase/include/mtr0mtr.h
storage/innobase/include/mtr0mtr.h
+2
-2
No files found.
storage/innobase/include/mtr0mtr.h
View file @
0d1ca193
...
@@ -193,7 +193,7 @@ struct mtr_t {
...
@@ -193,7 +193,7 @@ struct mtr_t {
fil_space_t
*
set_named_space_id
(
ulint
space_id
)
fil_space_t
*
set_named_space_id
(
ulint
space_id
)
{
{
ut_ad
(
!
m_user_space_id
);
ut_ad
(
!
m_user_space_id
);
ut_d
(
m_user_space_id
=
s
pace_id
);
ut_d
(
m_user_space_id
=
s
tatic_cast
<
uint32_t
>
(
space_id
)
);
if
(
!
space_id
)
{
if
(
!
space_id
)
{
return
fil_system
.
sys_space
;
return
fil_system
.
sys_space
;
}
else
{
}
else
{
...
@@ -211,7 +211,7 @@ struct mtr_t {
...
@@ -211,7 +211,7 @@ struct mtr_t {
void
set_named_space
(
fil_space_t
*
space
)
void
set_named_space
(
fil_space_t
*
space
)
{
{
ut_ad
(
!
m_user_space_id
);
ut_ad
(
!
m_user_space_id
);
ut_d
(
m_user_space_id
=
s
pace
->
id
);
ut_d
(
m_user_space_id
=
s
tatic_cast
<
uint32_t
>
(
space
->
id
)
);
if
(
space
->
id
)
{
if
(
space
->
id
)
{
m_user_space
=
space
;
m_user_space
=
space
;
}
}
...
...
This diff is collapsed.
Click to expand it.
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