summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2020-08-02 19:42:45 +0200
committerSergei Golubchik <serg@mariadb.org>2020-08-03 09:48:52 +0200
commitacfc500d037bbe1e2d9de8d713e3cf01bb7716aa (patch)
tree5c6e7e33efbad4e8c4135a577c1554f1c4f8d84f
parentdbb4572fe95bbf7f32949d6ab9228f4891e2f147 (diff)
downloadmariadb-git-acfc500d037bbe1e2d9de8d713e3cf01bb7716aa.tar.gz
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]
-rw-r--r--storage/xtradb/mtr/mtr0mtr.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/storage/xtradb/mtr/mtr0mtr.cc b/storage/xtradb/mtr/mtr0mtr.cc
index a04f9cc84a3..ce1002a00f0 100644
--- a/storage/xtradb/mtr/mtr0mtr.cc
+++ b/storage/xtradb/mtr/mtr0mtr.cc
@@ -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);
}