Bug #73324 Client flags are gettign discarded due to incorrect assignement operator.
Submitted: 18 Jul 2014 10:06 Modified: 12 Aug 2014 15:45
Reporter: Sujatha Sivakumar Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Replication Severity:S3 (Non-critical)
Version:5.5.38 OS:Any
Assigned to: CPU Architecture:Any

[18 Jul 2014 10:06] Sujatha Sivakumar
Description:
At sql/rpl_slave.cc  "|" operator is missing.

In connect_to_master(THD* thd, MYSQL* mysql, Master_info* mi,
                             bool reconnect, bool suppress_warnings)

....
if (opt_slave_compressed_protocol)
    client_flag=CLIENT_COMPRESS; 

 This operator should be "|=", not "=" (which, as it is, erroneously discards the options other than compression).  

How to repeat:
Read the code.

Suggested fix:
Provided in Description.
[12 Aug 2014 15:45] David Moss
The following has been added to the changelog for 5.7.5 with commit 3916: 

The CLIENT_REMEMBER_OPTIONS flag for compressed slave connections is no longer reset and all options are retained. This restores functionality of all options to compressed slave connections.
[25 Sep 2014 11:56] Laurynas Biveinis
Fixed in 5.6 too:

revno: 6086
committer: Sujatha Sivakumar <sujatha.sivakumar@oracle.com>
branch nick: Bug19244772_mysql-5.6
timestamp: Fri 2014-07-18 17:18:17 +0530
message:
  Bug#19244772:BACKPORT BUG #18923691 TO MYSQL-5.6
[30 Sep 2014 11:41] David Moss
Also visible in 5.6.21 release notes:
http://dev.mysql.com/doc/relnotes/mysql/5.6/en/news-5-6-21.html
[30 Sep 2014 11:43] David Moss
Posted by developer:
 
Also visible in 5.6.21 release notes:
http://dev.mysql.com/doc/relnotes/mysql/5.6/en/news-5-6-21.html