Commit acfc500d authored by Sergei Golubchik's avatar Sergei Golubchik

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]
parent dbb4572f
...@@ -93,8 +93,7 @@ mtr_memo_slot_release_func( ...@@ -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);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment