mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 14:02:32 +01:00
6f83ed91f3
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
57 lines
1.7 KiB
C++
57 lines
1.7 KiB
C++
/* Copyright (C) 2003 MySQL AB
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
|
|
|
#ifndef CONSUMER_PRINTER_HPP
|
|
#define CONSUMER_PRINTER_HPP
|
|
|
|
#include "consumer.hpp"
|
|
|
|
class BackupPrinter : public BackupConsumer
|
|
{
|
|
NdbOut & m_ndbout;
|
|
public:
|
|
BackupPrinter(NODE_GROUP_MAP *ng_map,
|
|
uint ng_map_len,
|
|
NdbOut & out = ndbout) : m_ndbout(out)
|
|
{
|
|
m_nodegroup_map = ng_map;
|
|
m_nodegroup_map_len= ng_map_len;
|
|
m_print = false;
|
|
m_print_log = false;
|
|
m_print_data = false;
|
|
m_print_meta = false;
|
|
m_logCount = 0;
|
|
m_dataCount = 0;
|
|
}
|
|
|
|
virtual bool table(const TableS &);
|
|
#ifdef USE_MYSQL
|
|
virtual bool table(const TableS &, MYSQL* mysqlp);
|
|
#endif
|
|
virtual void tuple(const TupleS &, Uint32 fragId);
|
|
virtual void logEntry(const LogEntry &);
|
|
virtual void endOfTuples() {};
|
|
virtual void endOfLogEntrys();
|
|
virtual bool update_apply_status(const RestoreMetaData &metaData);
|
|
bool m_print;
|
|
bool m_print_log;
|
|
bool m_print_data;
|
|
bool m_print_meta;
|
|
Uint32 m_logCount;
|
|
Uint32 m_dataCount;
|
|
};
|
|
|
|
#endif
|