summaryrefslogtreecommitdiff
path: root/sql/mdl.cc
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2016-06-23 21:57:53 +0300
committerMonty <monty@mariadb.org>2016-06-23 21:57:53 +0300
commita0d9f20c0c77702d7a8a3dbc5c295e9b1eefcafa (patch)
tree15fd0e625c4d4630e974f0bdc367db5bb6bc740a /sql/mdl.cc
parentec38c7e60bf8dbe54b1551e75254337bec1993a4 (diff)
downloadmariadb-git-bb-10.2-decimal.tar.gz
Fixed compiler warnings and test failures found by buildbotbb-10.2-decimal
Fixed ccfilter to detect errors where the column is included in the error message
Diffstat (limited to 'sql/mdl.cc')
-rw-r--r--sql/mdl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/mdl.cc b/sql/mdl.cc
index 61591ec9f57..cb616c30b1e 100644
--- a/sql/mdl.cc
+++ b/sql/mdl.cc
@@ -669,7 +669,7 @@ int mdl_iterate(int (*callback)(MDL_ticket *ticket, void *arg), void *arg)
my_hash_value_type mdl_hash_function(CHARSET_INFO *cs,
const uchar *key, size_t length)
{
- MDL_key *mdl_key= (MDL_key*) (key - offsetof(MDL_key, m_ptr));
+ MDL_key *mdl_key= (MDL_key*) (key - my_offsetof(MDL_key, m_ptr));
return mdl_key->hash_value();
}