• unknown's avatar
    WL #2747: Fix such that backup and restore works for user defined · 6f83ed91
    unknown authored
    partitioned tables in NDB
    
    
    include/my_sys.h:
      Move packfrm and unpackfrm to mysys
    mysql-test/r/ndb_restore.result:
      New test cases
    mysql-test/t/ndb_restore.test:
      New test cases
    mysys/my_compress.c:
      Moved packfrm and unpackfrm to mysys
    sql/ha_ndbcluster.cc:
      Set value of partition function in hidden field for user defined
      partitioning in NDB to handle restore and later on-line reorganize
      of partitions
      To save space value of those functions are limited to 32 bits
    sql/ha_partition.cc:
      Use new get_partition_id interface
    sql/handler.h:
      Use new get_partition_id interface
    sql/mysql_priv.h:
      Moved to mysys
    sql/mysqld.cc:
      Minor
    sql/opt_range.cc:
      New get_partition_id interface
    sql/sql_partition.cc:
      New get_partition_id interface
      Fix error checks of specification of engines in ALTER TABLE
      Moved packfrm and unpackfrm to mysys
    sql/sql_table.cc:
      Fixed debug printouts
    storage/ndb/include/kernel/ndb_limits.h:
      New constant
    storage/ndb/include/kernel/signaldata/DictTabInfo.hpp:
      New table description item
    storage/ndb/include/ndb_version.h.in:
      New version specific constant
    storage/ndb/include/ndbapi/NdbDictionary.hpp:
      New item in table descriptions
    storage/ndb/src/common/debugger/signaldata/DictTabInfo.cpp:
      New item in table descriptions
    storage/ndb/src/kernel/blocks/backup/Backup.cpp:
      Write fragment id in backup's log entry
    storage/ndb/src/kernel/blocks/backup/BackupFormat.hpp:
      Write fragment id in backup's log entry
    storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp:
      New item in table description
    storage/ndb/src/kernel/blocks/dbdict/Dbdict.hpp:
      New item in table description
    storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
      Moved constant
    storage/ndb/src/ndbapi/NdbDictionary.cpp:
      New item in table description
    storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp:
      New item in table description
    storage/ndb/src/ndbapi/NdbDictionaryImpl.hpp:
      New item in table description
    storage/ndb/tools/Makefile.am:
      Compress library needed for ndb_restore
    storage/ndb/tools/restore/Restore.cpp:
      Handle fragment id and also handle backups from older versions
    storage/ndb/tools/restore/Restore.hpp:
      Use fragment id
    storage/ndb/tools/restore/consumer.hpp:
      Use fragment id
    storage/ndb/tools/restore/consumer_printer.cpp:
      Use fragment id
    storage/ndb/tools/restore/consumer_printer.hpp:
      Use fragment id
    storage/ndb/tools/restore/consumer_restore.cpp:
      Code to map node groups if new cluster has different set of
      node groups from original cluster
      Very simple search and replace parser of partition syntax in frm file
      Fix settings of partition id properly using fragment id and hidden
      field in tables
    storage/ndb/tools/restore/consumer_restore.hpp:
      Changed function headers and new one for mapping node groups
    storage/ndb/tools/restore/consumer_restorem.cpp:
      Use fragment id
    storage/ndb/tools/restore/restore_main.cpp:
      New parameter to set node group map, parser for this parameter
    6f83ed91
consumer_restore.hpp 3.56 KB