Bug #35343 Incorrectly handled datatypes in ndb_restore in backup-log
Submitted: 17 Mar 2008 16:27 Modified: 31 May 2008 10:43
Reporter: Jonas Oreland Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S3 (Non-critical)
Version:5.1* OS:Any
Assigned to: Jonas Oreland CPU Architecture:Any

[17 Mar 2008 16:27] Jonas Oreland
Description:
The ndb_restore program has a set of special cases wrt endianess,
however these if-statements were incorrectly put in the code
so they would only be checked if data was in *datafile* not in *logfile*

How to repeat:
Run ndb_restore with logfile from different endianess with entries
using Timestamp/Datetime or blob-v1

Suggested fix:
Move checks into Twiddle-function which handles this for both data and log
[17 Mar 2008 16:30] 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/44127

ChangeSet@1.2541, 2008-03-17 17:30:16+01:00, jonas@perch.ndb.mysql.com +1 -0
  ndb - bug#35343 - incorrectly handled datatypes in ndb_restore when applying
                    backup-logfile
  
  Move "special" cases into Twiddle function
  so that they are correctly check *also* if data 
  accedintly is in backup-log
[18 Mar 2008 7:25] Jonas Oreland
pushed to 51-ndb, telco-6.2, 63, 64
wont fix in 41/50
[4 Apr 2008 20:52] Jon Stephens
Documetned in the 5.1.23-ndb-6.3.11 changelog as follows:

        ndb_restore incorrectly handled some datatypes when applying
        backup logfiles.

Left Patch Queued status pending further merges.
[4 Apr 2008 22:43] Jon Stephens
Fix also noted in the 5.1.23-ndb-6.2.15 changelog.
[31 May 2008 10:43] Jon Stephens
Closed following discussion with Jonas.
[12 Dec 2008 23:27] Bugs System
Pushed into 6.0.6-alpha  (revid:sp1r-jonas@perch.ndb.mysql.com-20080317163016-25726) (version source revid:sp1r-tomas@poseidon.ndb.mysql.com-20080516085603-30848) (pib:5)