mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 04:22:27 +01:00
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
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue