mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 23:34:34 +01:00
6ba273731d
Temporary tables are not written to disk by DDL operations. This makes DDL much faster (useful for tests), but tables are lost after system restart. New commit, since this feature will not be available in 5.1. storage/ndb/include/kernel/signaldata/CreateIndx.hpp: Add new error messages for temporary tables. storage/ndb/include/kernel/signaldata/CreateTable.hpp: Add new error messages for temporary tables. storage/ndb/include/kernel/signaldata/DiAddTab.hpp: Add parameter for making table temporary. storage/ndb/include/kernel/signaldata/DictTabInfo.hpp: Add parameter for making table temporary. storage/ndb/include/kernel/signaldata/ListTables.hpp: Add parameter for making table temporary. storage/ndb/include/ndb_constants.h: Add parameter for making table temporary. storage/ndb/include/ndbapi/NdbDictionary.hpp: Add parameter for making table temporary. storage/ndb/src/common/debugger/signaldata/DictTabInfo.cpp: Add parameter for making table temporary. storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp: Implement temporary tables. storage/ndb/src/kernel/blocks/dbdict/Dbdict.hpp: Implement temporary tables. storage/ndb/src/kernel/blocks/dbdict/SchemaFile.hpp: Implement temporary tables. storage/ndb/src/kernel/blocks/dbdih/Dbdih.hpp: Implement temporary tables. storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp: Implement temporary tables. storage/ndb/src/ndbapi/NdbDictionary.cpp: Implement temporary tables. storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp: Implement temporary tables. storage/ndb/src/ndbapi/NdbDictionaryImpl.hpp: Implement temporary tables. storage/ndb/src/ndbapi/ndberror.c: Add new error messages for temporary tables. storage/ndb/tools/listTables.cpp: Add display of table and index temporary status.
92 lines
1.8 KiB
C++
92 lines
1.8 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 DIADDTABREQ_HPP
|
|
#define DIADDTABREQ_HPP
|
|
|
|
#include "SignalData.hpp"
|
|
|
|
class DiAddTabReq {
|
|
/**
|
|
* Sender(s)
|
|
*/
|
|
friend class Dbdict;
|
|
|
|
/**
|
|
* Receiver(s)
|
|
*/
|
|
friend class Dbdih;
|
|
public:
|
|
STATIC_CONST( SignalLength = 10 );
|
|
SECTION( FRAGMENTATION = 0 );
|
|
SECTION( TS_RANGE = 0 );
|
|
|
|
private:
|
|
Uint32 connectPtr;
|
|
Uint32 tableId;
|
|
Uint32 fragType;
|
|
Uint32 kValue;
|
|
Uint32 noOfReplicas; //Currently not used
|
|
Uint32 loggedTable;
|
|
Uint32 tableType;
|
|
Uint32 schemaVersion;
|
|
Uint32 primaryTableId;
|
|
Uint32 temporaryTable;
|
|
};
|
|
|
|
class DiAddTabRef {
|
|
/**
|
|
* Sender(s)
|
|
*/
|
|
friend class Dbdih;
|
|
|
|
/**
|
|
* Receiver(s)
|
|
*/
|
|
friend class Dbdict;
|
|
public:
|
|
STATIC_CONST( SignalLength = 2 );
|
|
|
|
private:
|
|
union {
|
|
Uint32 connectPtr;
|
|
Uint32 senderData;
|
|
};
|
|
Uint32 errorCode;
|
|
};
|
|
|
|
class DiAddTabConf {
|
|
/**
|
|
* Sender(s)
|
|
*/
|
|
friend class Dbdih;
|
|
|
|
/**
|
|
* Receiver(s)
|
|
*/
|
|
friend class Dbdict;
|
|
public:
|
|
STATIC_CONST( SignalLength = 1 );
|
|
|
|
private:
|
|
union {
|
|
Uint32 connectPtr;
|
|
Uint32 senderData;
|
|
};
|
|
};
|
|
|
|
|
|
#endif
|