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:
Sergei Golubchik 2020-08-02 19:42:45 +02:00
parent dbb4572fe9
commit acfc500d03

View file

@ -93,8 +93,7 @@ mtr_memo_slot_release_func(
{
fil_space_t* space = reinterpret_cast<fil_space_t*>(
static_cast<char*>(object)
- reinterpret_cast<char*>(
&static_cast<fil_space_t*>(0)->latch));
- my_offsetof(fil_space_t, latch));
space->committed_size = space->size;
rw_lock_x_unlock(&space->latch);
}