diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2021-09-30 10:14:28 +0200 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2021-10-12 10:01:07 +0200 |
commit | 763bdee81b381dda8e676838f5f56c9fbb415ef9 (patch) | |
tree | 777c9de6901c190bac041df088fb49def1fb34ec /sql/hostname.cc | |
parent | 6cf7d6a0938a9dfe38e38d12384cc8fb86f5d74b (diff) | |
download | mariadb-git-763bdee81b381dda8e676838f5f56c9fbb415ef9.tar.gz |
MDEV-26637: (explicit length) ASAN: main.metadata and user_variables.basic MTR failures after MDEV-26572
Use explicit length for hash record length
Diffstat (limited to 'sql/hostname.cc')
-rw-r--r-- | sql/hostname.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/hostname.cc b/sql/hostname.cc index 7b07ab620a6..35948db3d23 100644 --- a/sql/hostname.cc +++ b/sql/hostname.cc @@ -191,7 +191,7 @@ Host_entry *hostname_cache_first() static inline Host_entry *hostname_cache_search(const char *ip_key) { - return hostname_cache->search((uchar *) ip_key, 0); + return hostname_cache->search((uchar *) ip_key, HOST_ENTRY_KEY_SIZE); } static void add_hostname_impl(const char *ip_key, const char *hostname, |