MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:Sergei Golubchik Date:June 28 2007 6:41pm
Subject:Re: bk commit into 5.0 tree (holyfoot:1.2496) BUG#29247
View as plain text  
Hi!

On Jun 25, holyfoot@stripped wrote:
> ChangeSet@stripped, 2007-06-25 16:40:29+05:00, holyfoot@stripped +1 -0
>   Bug #29247 Double free in libmysqlclient_r when mysql restarted.
>   
>   If one sets MYSQL_READ_DEFAULTS_FILE and MYSQL_READ_DEFAULT_GROUP options
>   after mysql_real_connect() called with that MYSQL instance,
>   these options will affect next mysql_reconnect then.
>   As we use a copy of the original MYSQL object inside mysql_reconnect,
>   and mysql_real_connect frees options.my_cnf_file and _group strings,
>   we will free these twice when we execute mysql_reconnect with the
>   same MYSQL for the second time.
>   
>   I don't think we should ever read defaults files handling mysql_reconnect.
>   So i just set them to 0 for the temporary MYSQL object there/

ok to push
 
Regards / Mit vielen Grüssen,
Sergei

-- 
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /   Sergei Golubchik <serg@stripped>
 / /|_/ / // /\ \/ /_/ / /__  Principal Software Developer
/_/  /_/\_, /___/\___\_\___/  MySQL GmbH, Radlkoferstr. 2, D-81373 München
       <___/                  Geschäftsführer: Kaj Arnö - HRB
München 162140
Thread
bk commit into 5.0 tree (holyfoot:1.2496) BUG#29247holyfoot25 Jun
  • Re: bk commit into 5.0 tree (holyfoot:1.2496) BUG#29247Sergei Golubchik28 Jun