[MDEV-19510]  Issue with: sql/wsrep_mysqld.cc : ip_len Created: 2019-05-17  Updated: 2020-11-02  Resolved: 2019-11-29

Status: Closed
Project: MariaDB Server
Component/s: Compiling
Affects Version/s: 10.4
Fix Version/s: 10.4.11

Type: Bug Priority: Major
Reporter: Anel Husakovic Assignee: Anel Husakovic
Resolution: Fixed Votes: 0
Labels: compile, foundation
Environment:

AIX


Issue Links:
Blocks
is blocked by MDEV-24099 Mariadb 10.3.25 Issue with ip_len on AIX Closed
Relates
relates to MDEV-19512 Foundation: MCAs patches Open

 Description   

Line of sql/wsrep_mysqld.cc :

       size_t const ip_len= wsrep_host_len(node_addr.c_str(), node_addr.size());

is preprocessed (gcc -E) as:

       size_t const
                   ip_ff.ip_vhltl.ip_x.ip_xlen
                         = wsrep_host_len(node_addr.c_str(), node_addr.size());

where "ip_len" becomes: ip_ff.ip_vhltl.ip_x.ip_xlen , which is wrong and breaks.



 Comments   
Comment by Jan Lindström (Inactive) [ 2019-06-12 ]

I do not have access to AIX to test this but I do not follow how size_t const ip_len can become size_t const ip_ff.ip_vhltl.ip_x.ip_xlen ? In my understanding with that definition ip_len should be size_t type.

Comment by Anel Husakovic [ 2019-11-29 ]

Pushed with ad5b7b157b43a

Generated at Thu Feb 08 08:52:15 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.