Bug #34022 hash ref error in ndb_size.pl
Submitted: 23 Jan 2008 21:40 Modified: 27 May 2008 14:27
Reporter: Kolbe Kegel Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S3 (Non-critical)
Version:5.1.22 OS:Solaris (Solaris 10 64-bit)
Assigned to: CPU Architecture:Any

[23 Jan 2008 21:40] Kolbe Kegel
Description:
While trying to run ndb_size.pl I get this error:

Can't use string ("9/16") as a HASH ref while "strict refs" in use at /users/kkegel/ndb_size.pl line 822.

This error could be related to something else, as I'm seeing other problems with Class::MethodMaker. Nevertheless, this construct seems peculiar:

  ${%$i}{Key_name}

Why not use this instead:

  $i->{Key_name}

How to repeat:
I'm not sure if some special environment is required for this bug to be repeated.

I am using 64-bit Sparc ActivePerl and Class::MethodMaker 2.10 if that is of any relevance.

Suggested fix:
will attach patch..
[23 Jan 2008 21:40] Kolbe Kegel
patch against ndb_size.pl

Attachment: ndb_size.pl.diff (text/x-patch), 915 bytes.

[23 May 2008 7:44] Stewart Smith
i'm okay with patch, gonig to push as soon as my local tree is updated...
[23 May 2008 7:54] 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/46986

ChangeSet@1.2581, 2008-05-23 17:54:06+10:00, stewart@willster.(none) +1 -0
  Bug #34022  	hash ref error in ndb_size.pl
  
  Sun Solaris (Solaris 10 64-bit)
  
  for whatever strange reason, this fixes it.
  
  Credit goes to Kolbe for the patch.
[23 May 2008 7:54] Stewart Smith
pushed to 5.1-ndb
[26 May 2008 8:34] Bugs System
Pushed into 5.1.23-ndb-6.4.0
[26 May 2008 8:35] Bugs System
Pushed into 5.1.24-ndb-6.3.15
[26 May 2008 8:37] Bugs System
Pushed into 5.1.24-ndb-6.2.16
[27 May 2008 14:27] Jon Stephens
Documented fix in the NDB 6.2.16 and NDB 6.3.15 changelogs.
[12 Dec 2008 23:27] Bugs System
Pushed into 6.0.6-alpha  (revid:sp1r-stewart@willster.(none)-20080523075406-25292) (version source revid:jonas@mysql.com-20080808094047-4e1yiarqa2t3opg3) (pib:5)
[2 Mar 2010 9:09] Sveta Smirnova
Bug #51478 was marked as duplicate of this one.