compilation error on bintar-centos6-amd64-debug
/home/buildbot/buildbot/build/storage/xtradb/mtr/mtr0mtr.cc:97:37: error: invalid access to non-static data member ‘fil_space_t::latch’ of NULL object [-Werror=invalid-offsetof]
This commit is contained in:
parent
dbb4572fe9
commit
acfc500d03
@ -93,8 +93,7 @@ mtr_memo_slot_release_func(
|
|||||||
{
|
{
|
||||||
fil_space_t* space = reinterpret_cast<fil_space_t*>(
|
fil_space_t* space = reinterpret_cast<fil_space_t*>(
|
||||||
static_cast<char*>(object)
|
static_cast<char*>(object)
|
||||||
- reinterpret_cast<char*>(
|
- my_offsetof(fil_space_t, latch));
|
||||||
&static_cast<fil_space_t*>(0)->latch));
|
|
||||||
space->committed_size = space->size;
|
space->committed_size = space->size;
|
||||||
rw_lock_x_unlock(&space->latch);
|
rw_lock_x_unlock(&space->latch);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user