mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 22:12:30 +01:00
b70b75567a
into perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new mysql-test/lib/mtr_timer.pl: Auto merged scripts/make_binary_distribution.sh: Auto merged sql/ha_innodb.cc: Auto merged storage/ndb/include/kernel/signaldata/DumpStateOrd.hpp: Auto merged storage/ndb/include/kernel/signaldata/StartPerm.hpp: Auto merged storage/ndb/include/kernel/signaldata/TcContinueB.hpp: Auto merged storage/ndb/include/mgmapi/ndbd_exit_codes.h: Auto merged storage/ndb/src/kernel/blocks/ERROR_codes.txt: Auto merged storage/ndb/src/kernel/blocks/backup/Backup.cpp: Auto merged storage/ndb/src/kernel/blocks/dbdih/Dbdih.hpp: Auto merged storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp: Auto merged storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp: Auto merged storage/ndb/src/kernel/blocks/dbtc/Dbtc.hpp: Auto merged storage/ndb/src/kernel/blocks/qmgr/QmgrMain.cpp: Auto merged storage/ndb/src/kernel/error/ndbd_exit_codes.c: Auto merged storage/ndb/src/kernel/vm/TransporterCallback.cpp: Auto merged storage/ndb/src/ndbapi/NdbTransaction.cpp: Auto merged storage/ndb/src/ndbapi/Ndbif.cpp: Auto merged storage/ndb/src/ndbapi/TransporterFacade.cpp: Auto merged storage/ndb/test/include/NdbRestarter.hpp: Auto merged storage/ndb/test/ndbapi/testNodeRestart.cpp: Auto merged storage/ndb/test/ndbapi/testSystemRestart.cpp: Auto merged storage/ndb/test/ndbapi/testTimeout.cpp: Auto merged storage/ndb/test/run-test/conf-daily-devel-ndbmaster.txt: Auto merged storage/ndb/test/run-test/conf-dl145a.txt: Auto merged storage/ndb/test/run-test/conf-ndbmaster.txt: Auto merged storage/ndb/test/run-test/ndb-autotest.sh: Auto merged storage/ndb/test/src/NdbRestarter.cpp: Auto merged storage/ndb/test/run-test/conf-shark.txt: Auto merged storage/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp: merge storage/ndb/src/ndbapi/TransporterFacade.hpp: merge storage/ndb/test/run-test/Makefile.am: merge storage/ndb/test/run-test/daily-basic-tests.txt: merge storage/ndb/tools/desc.cpp: merge
74 lines
1.6 KiB
C++
74 lines
1.6 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 START_PERM_REQ_HPP
|
|
#define START_PERM_REQ_HPP
|
|
|
|
/**
|
|
* This signal is sent by starting DIH to master DIH
|
|
*
|
|
* Used when starting in an already started cluster
|
|
*
|
|
*/
|
|
class StartPermReq {
|
|
/**
|
|
* Sender(s) / Reciver(s)
|
|
*/
|
|
friend class Dbdih;
|
|
|
|
public:
|
|
STATIC_CONST( SignalLength = 3 );
|
|
private:
|
|
|
|
Uint32 blockRef;
|
|
Uint32 nodeId;
|
|
Uint32 startType;
|
|
};
|
|
|
|
class StartPermConf {
|
|
/**
|
|
* Sender(s) / Reciver(s)
|
|
*/
|
|
friend class Dbdih;
|
|
|
|
public:
|
|
STATIC_CONST( SignalLength = 2 );
|
|
private:
|
|
|
|
Uint32 startingNodeId;
|
|
Uint32 systemFailureNo;
|
|
};
|
|
|
|
class StartPermRef {
|
|
/**
|
|
* Sender(s) / Reciver(s)
|
|
*/
|
|
friend class Dbdih;
|
|
|
|
public:
|
|
STATIC_CONST( SignalLength = 2 );
|
|
private:
|
|
|
|
Uint32 startingNodeId;
|
|
Uint32 errorCode;
|
|
|
|
enum ErrorCode
|
|
{
|
|
ZNODE_ALREADY_STARTING_ERROR = 305,
|
|
InitialStartRequired = 320
|
|
};
|
|
};
|
|
#endif
|