One more fixup for sizeof(mtr_t) reduction

Add explicit casts when assigning ulint to m_user_space_id.
This commit is contained in:
Marko Mäkelä 2020-02-07 13:44:13 +02:00
parent 91e7b44399
commit 0d1ca19383

View file

@ -193,7 +193,7 @@ struct mtr_t {
fil_space_t* set_named_space_id(ulint space_id)
{
ut_ad(!m_user_space_id);
ut_d(m_user_space_id = space_id);
ut_d(m_user_space_id = static_cast<uint32_t>(space_id));
if (!space_id) {
return fil_system.sys_space;
} else {
@ -211,7 +211,7 @@ struct mtr_t {
void set_named_space(fil_space_t* space)
{
ut_ad(!m_user_space_id);
ut_d(m_user_space_id = space->id);
ut_d(m_user_space_id = static_cast<uint32_t>(space->id));
if (space->id) {
m_user_space = space;
}