~ubuntu-branches/ubuntu/gutsy/mysql-dfsg-5.0/gutsy

« back to all changes in this revision

Viewing changes to ndb/tools/restore/Restore.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2007-04-03 09:43:01 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20070403094301-fnjhfr59hu72pvtg
Tags: 5.0.38-0ubuntu1
* Package the Enterprise version again (.37 was a community version), since
  Debian and we have always done so. This brings in a few more bug fixes and
  makes functional derivations less likely.
* debian/README.Maintainer: Add pointer to upstream download URL, since it
  is very hard to find the Enterprise versions.
* Disable 33_scripts__mysql_create_system_tables__no_test.dpatch, since that
  script was removed upstream.
* debian/patches/41_scripts__mysql_install_db.sh__no_test.dpatch: Adapted to
  changed formatting in new upstream version.
* Remove debian/patches/86_PATH_MAX.dpatch, fixed upstream.
* Add debian/patches/90_org_tables_definition.dpatch: Fix local variable
  declaration in libmysqld/sql_parse.cc to fix compilation with
  EMBEDDED_LIBRARY.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
    return true;
55
55
  case 64:
56
56
    for(i = 0; i<arraySize; i++){
57
 
      attr_data->u_int64_value[i] = Twiddle64(attr_data->u_int64_value[i]);
 
57
      // allow unaligned
 
58
      char* p = (char*)&attr_data->u_int64_value[i];
 
59
      Uint64 x;
 
60
      memcpy(&x, p, sizeof(Uint64));
 
61
      x = Twiddle64(x);
 
62
      memcpy(p, &x, sizeof(Uint64));
58
63
    }
59
64
    return true;
60
65
  default: