Bug #84636 group replication, broken one-definition rule
Submitted: 24 Jan 2017 12:05 Modified: 26 Jan 2017 15:16
Reporter: Tor Didriksen Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.7.18 OS:Any
Assigned to: CPU Architecture:Any

[24 Jan 2017 12:05] Tor Didriksen
Description:
The global variable cfg_app_xcom_st* the_app_xcom_cfg; should be declared "extern" in 
xcom_cfg.h and then *defined* in xcom_cfg.c
This breaks the one-definition rule.

How to repeat:
Read the code, look at output from 'nm --print-size' for various compilations units group_replication.so

Suggested fix:
See description.
[26 Jan 2017 15:16] Paul DuBois
Posted by developer:
 
Fixed in 5.7.18, 8.0.1.

Code cleanup. No changelog entry needed.