Bug #61180 | *korr/*store macros in my_global.h assume the argument to be a char pointer | ||
---|---|---|---|
Submitted: | 15 May 2011 15:53 | Modified: | 25 Feb 2014 16:17 |
Reporter: | Alexey Kopytov | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: General | Severity: | S3 (Non-critical) |
Version: | 5.1, 5.5 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[15 May 2011 15:53]
Alexey Kopytov
[17 May 2011 18:23]
MySQL Verification Team
Kaamos, my dear friend, I checked a code and seems like a first class is used for cases which are up to 32 bits wide, while the second one is used for other cases. Although, it is not documented. Please, tell me if you think that I am wrong.
[17 May 2011 19:10]
Alexey Kopytov
Sinisa, I assume you are referring to the Bitmap<> class templates. Bitmap<uint default_width> is a general implementation for arbitrarily-sized bitmaps, and Bitmap<64> is an optimized version which stores and processes bitmaps as a 64-bit integer.
[18 May 2011 14:34]
MySQL Verification Team
Kaamos, I agree with you, but do you have an example in our code where default_width is larger then 32 bits.
[18 May 2011 14:43]
Alexey Kopytov
Sinisa, It is larger than 64 if you build with --with-max-indexes=128. Don't know if there are other users of that template.
[18 May 2011 14:51]
Alexey Kopytov
It's one of the reasons for bug #54127.
[18 May 2011 17:15]
MySQL Verification Team
Kaamos, Well, this time I agree with you ...... ;o) Although it is hard for me to admit such things ....
[25 Feb 2014 16:17]
Paul DuBois
Fixed in 5.7.4. No user impact; no changelog entry required.