[MDEV-3846] REFRESH_CHECKPOINT and REFRESH_TABLE_STATS tokens share the same value Created: 2012-11-09  Updated: 2013-01-09  Resolved: 2013-01-09

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.0.0, 5.5.28
Fix Version/s: 10.0.1, 5.5.29

Type: Bug Priority: Major
Reporter: Ievgen Varavva Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: None

Attachments: Text File maria-fix-conflicting-refresh-opts.patch    

 Description   

As can be seen at http://bazaar.launchpad.net/~maria-captains/maria/10.0/annotate/head:/include/mysql_com.h#L159

in paricular:

#define REFRESH_CHECKPOINT	0x100000L
#define REFRESH_TABLE_STATS     (1L << 20)

two constants got the same value (presumably during a merge). This makes mysqld confuse these options when processing the FLUSH command.

Incrementing shifts for REFRESH_TABLE_STATS and following constants seems to solve the issue.

I'm not sure about how to use bzr correctly, by my suggested patch with a test case is at https://code.launchpad.net/~varavv/maria/maria-fix-conflicting-refresh-opts and in attachment.



 Comments   
Comment by Sergei Golubchik [ 2012-11-09 ]

Thank you very much for spotting this and for the patch!

Generated at Thu Feb 08 06:51:38 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.