From: John David Duncan Date: April 19 2011 6:48am Subject: bzr commit into mysql-5.1-telco-7.2 branch (john.duncan:4162) List-Archive: http://lists.mysql.com/commits/135689 Message-Id: <201104190648.p3J6mjwl017595@acsmt357.oracle.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1722461286==" --===============1722461286== MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline #At file:///Users/jdd/bzr-repo/working/cluster-7.2-labs-memcached/ based on revid:john.duncan@stripped 4162 John David Duncan 2011-04-18 Duplicate connectstring before storing it. This should fix bug resulting in a garbled connectstring and extra cluster connection. modified: storage/ndb/memcache/src/Configuration.cc === modified file 'storage/ndb/memcache/src/Configuration.cc' --- a/storage/ndb/memcache/src/Configuration.cc 2011-04-09 07:36:24 +0000 +++ b/storage/ndb/memcache/src/Configuration.cc 2011-04-19 06:47:32 +0000 @@ -580,7 +580,7 @@ bool config_v1::get_connections() { if(str_is_null) connection_idx = conf.storeConnection(0, rtt); else - connection_idx = conf.storeConnection(connectstring, rtt); + connection_idx = conf.storeConnection(strdup(connectstring), rtt); DEBUG_PRINT("[%d]: { %d => \"%s\" [rtt: %d]}", connection_idx, cfg_data_id, str_is_null ? "" : connectstring, rtt); --===============1722461286== MIME-Version: 1.0 Content-Type: text/bzr-bundle; charset="us-ascii"; name="bzr/john.duncan@stripped" Content-Transfer-Encoding: 7bit Content-Disposition: inline # Bazaar merge directive format 2 (Bazaar 0.90) # revision_id: john.duncan@stripped # target_branch: file:///Users/jdd/bzr-repo/working/cluster-7.2-labs-\ # memcached/ # testament_sha1: fdd833b576dcad724568df15016cc2001ee1f883 # timestamp: 2011-04-18 23:48:40 -0700 # base_revision_id: john.duncan@stripped\ # x6n6ryyvnjxp8suj # # Begin bundle IyBCYXphYXIgcmV2aXNpb24gYnVuZGxlIHY0CiMKQlpoOTFBWSZTWbDT0ecAAXpfgBAQUGf//14Q BAC///9wUAOc8DoDoAYhETCekzRohoPUwAJ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OhDmRTVCotqse D6mUU63Ccl4K3N/+yBM7JaS1fArjAM1+KXZK5SDUvVfitPVKilWIu5IpwoSFhp6POA== --===============1722461286==--