Bug #57953 | my_load_defaults return junk argument ----args-separator---- to caller | ||
---|---|---|---|
Submitted: | 3 Nov 2010 13:42 | Modified: | 29 Jan 2011 23:05 |
Reporter: | Magnus Blåudd | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 5.5.7-rc, 5.6.99 | OS: | Any |
Assigned to: | Zhenxing He | CPU Architecture: | Any |
Tags: | SEAGULL |
[3 Nov 2010 13:42]
Magnus Blåudd
[3 Nov 2010 13:55]
Magnus Blåudd
Would recommend that if the "args_separator" variable is made part of the interface to mysys, it should be prefixed with my_ as all the other variables that (unfortunately) already are ppart of interface. const char *args_separator= "----args-separator----"; const char *my_defaults_file=0; const char *my_defaults_group_suffix=0; char *my_defaults_extra_file=0;
[3 Nov 2010 20:16]
Sveta Smirnova
Thank you for the report. Verified as described.
[10 Nov 2010 10:16]
Georgi Kodinov
This is a regression from the fix of bug #25192.
[20 Dec 2010 4:31]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/127267 3180 He Zhenxing 2010-12-20 BUG#57953 my_load_defaults return junk argument ----args-separator---- to caller After fix of bug#25192, load_defaults() will add an args separator to distinguish options loaded from configure files from that provided in the command line. One problem of this is that the args separator would be added no matter the application need it or not. Fixed the problem by adding an option: bool my_getopt_use_args_separator; to control whether the separator will be added or not. And also added functions: bool my_getopt_is_args_separator(const char* arg); to check if the argument is the separator or not.
[17 Jan 2011 7:46]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/128889 3256 He Zhenxing 2011-01-17 BUG#57953 my_load_defaults return junk argument ----args-separator---- to caller After fix of bug#25192, load_defaults() will add an args separator to distinguish options loaded from configure files from that provided in the command line. One problem of this is that the args separator would be added no matter the application need it or not. Fixed the problem by adding an option: bool my_getopt_use_args_separator; to control whether the separator will be added or not. And also added functions: bool my_getopt_is_args_separator(const char* arg); to check if the argument is the separator or not.
[17 Jan 2011 9:59]
Bugs System
Pushed into mysql-trunk 5.6.2 (revid:hezx@greatopensource.com-20110117095259-jbpwy1vhb0ggkq9k) (version source revid:hezx@greatopensource.com-20110117095259-jbpwy1vhb0ggkq9k) (merge vers: 5.6.2) (pib:24)
[17 Jan 2011 10:01]
Bugs System
Pushed into mysql-5.5 5.5.10 (revid:hezx@greatopensource.com-20110117095918-ibh2zq8x63eqcq4q) (version source revid:hezx@greatopensource.com-20110117074437-v3icyuwsocqj0j6c) (merge vers: 5.5.10) (pib:24)
[18 Jan 2011 20:04]
Paul DuBois
Noted in 5.5.10, 5.6.2 changelogs. The fix for Bug#25192 caused load_defaults() to add an argument separator to distinguish options loaded from configure files from those provided on the command line, whether or not the application needed it.