mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
AIX compile fixes
ndb/include/kernel/signaldata/UpgradeStartup.hpp: Forward declaration ndb/include/ndb_global.h: Fix for AIX ndb/include/ndb_types.h: Always use ndb_global instead of my_global (or anything else) ndb/include/ndbapi/Ndb.hpp: Forward declaration ndb/include/ndbapi/NdbReceiver.hpp: Forward declaration ndb/include/ndbapi/NdbScanOperation.hpp: Forward declaration ndb/src/common/util/ConfigValues.cpp: Always use ndb_global instead of my_global (or anything else) ndb/src/kernel/blocks/backup/restore/Restore.hpp: Forward declaration ndb/src/kernel/blocks/dbtup/Dbtup.hpp: Move read/update function into Dbtup ndb/src/mgmsrv/SignalQueue.cpp: Always use ndb_global instead of my_global (or anything else) ndb/tools/waiter.cpp: Always use ndb_global instead of my_global (or anything else)
This commit is contained in:
@ -1,6 +1,8 @@
|
|||||||
#ifndef NDB_UPGRADE_STARTUP
|
#ifndef NDB_UPGRADE_STARTUP
|
||||||
#define NDB_UPGRADE_STARTUP
|
#define NDB_UPGRADE_STARTUP
|
||||||
|
|
||||||
|
class Ndbcntr;
|
||||||
|
|
||||||
struct UpgradeStartup {
|
struct UpgradeStartup {
|
||||||
|
|
||||||
static void installEXEC(SimulatedBlock*);
|
static void installEXEC(SimulatedBlock*);
|
||||||
|
@ -13,6 +13,9 @@
|
|||||||
#undef NDB_WIN32
|
#undef NDB_WIN32
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef _AIX
|
||||||
|
#undef _H_STRINGS
|
||||||
|
#endif
|
||||||
#include <m_string.h>
|
#include <m_string.h>
|
||||||
#include <m_ctype.h>
|
#include <m_ctype.h>
|
||||||
#include <ndb_types.h>
|
#include <ndb_types.h>
|
||||||
|
@ -33,7 +33,7 @@ typedef unsigned int UintR;
|
|||||||
#ifdef __SIZE_TYPE__
|
#ifdef __SIZE_TYPE__
|
||||||
typedef __SIZE_TYPE__ UintPtr;
|
typedef __SIZE_TYPE__ UintPtr;
|
||||||
#else
|
#else
|
||||||
#include <my_global.h>
|
#include <ndb_global.h>
|
||||||
#ifdef HAVE_STDINT_H
|
#ifdef HAVE_STDINT_H
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -881,6 +881,7 @@ class Table;
|
|||||||
class BaseString;
|
class BaseString;
|
||||||
class NdbEventOperation;
|
class NdbEventOperation;
|
||||||
class NdbBlob;
|
class NdbBlob;
|
||||||
|
class NdbReceiver;
|
||||||
|
|
||||||
typedef void (* NdbEventCallback)(NdbEventOperation*, Ndb*, void*);
|
typedef void (* NdbEventCallback)(NdbEventOperation*, Ndb*, void*);
|
||||||
|
|
||||||
|
@ -22,6 +22,8 @@
|
|||||||
#include <ndb_global.h>
|
#include <ndb_global.h>
|
||||||
|
|
||||||
class Ndb;
|
class Ndb;
|
||||||
|
class NdbConnection;
|
||||||
|
|
||||||
class NdbReceiver
|
class NdbReceiver
|
||||||
{
|
{
|
||||||
friend class Ndb;
|
friend class Ndb;
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
#include <NdbOperation.hpp>
|
#include <NdbOperation.hpp>
|
||||||
|
|
||||||
class NdbBlob;
|
class NdbBlob;
|
||||||
|
class NdbResultSet;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @class NdbScanOperation
|
* @class NdbScanOperation
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
|
|
||||||
|
#include <ndb_global.h>
|
||||||
#include <ConfigValues.hpp>
|
#include <ConfigValues.hpp>
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <assert.h>
|
|
||||||
#include <new>
|
|
||||||
#include <NdbOut.hpp>
|
#include <NdbOut.hpp>
|
||||||
#include <NdbTCP.h>
|
#include <NdbTCP.h>
|
||||||
|
|
||||||
|
@ -91,7 +91,7 @@ class TupleS {
|
|||||||
private:
|
private:
|
||||||
friend class RestoreDataIterator;
|
friend class RestoreDataIterator;
|
||||||
|
|
||||||
TableS *m_currentTable;
|
class TableS *m_currentTable;
|
||||||
AttributeData *allAttrData;
|
AttributeData *allAttrData;
|
||||||
bool prepareRecord(TableS &);
|
bool prepareRecord(TableS &);
|
||||||
|
|
||||||
|
@ -35,14 +35,6 @@
|
|||||||
#define ZMIN_PAGE_LIMIT_TUPKEYREQ 5
|
#define ZMIN_PAGE_LIMIT_TUPKEYREQ 5
|
||||||
#define ZTUP_VERSION_BITS 15
|
#define ZTUP_VERSION_BITS 15
|
||||||
|
|
||||||
typedef bool (Dbtup::* ReadFunction)(Uint32*,
|
|
||||||
AttributeHeader*,
|
|
||||||
Uint32,
|
|
||||||
Uint32);
|
|
||||||
typedef bool (Dbtup::* UpdateFunction)(Uint32*,
|
|
||||||
Uint32,
|
|
||||||
Uint32);
|
|
||||||
|
|
||||||
#ifdef DBTUP_C
|
#ifdef DBTUP_C
|
||||||
//------------------------------------------------------------------
|
//------------------------------------------------------------------
|
||||||
// Jam Handling:
|
// Jam Handling:
|
||||||
@ -351,6 +343,14 @@ typedef bool (Dbtup::* UpdateFunction)(Uint32*,
|
|||||||
|
|
||||||
class Dbtup: public SimulatedBlock {
|
class Dbtup: public SimulatedBlock {
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
typedef bool (Dbtup::* ReadFunction)(Uint32*,
|
||||||
|
AttributeHeader*,
|
||||||
|
Uint32,
|
||||||
|
Uint32);
|
||||||
|
typedef bool (Dbtup::* UpdateFunction)(Uint32*,
|
||||||
|
Uint32,
|
||||||
|
Uint32);
|
||||||
// State values
|
// State values
|
||||||
enum State {
|
enum State {
|
||||||
NOT_INITIALIZED = 0,
|
NOT_INITIALIZED = 0,
|
||||||
|
@ -14,8 +14,7 @@
|
|||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
|
||||||
#include <string.h>
|
#include <ndb_global.h>
|
||||||
|
|
||||||
#include "SignalQueue.hpp"
|
#include "SignalQueue.hpp"
|
||||||
|
|
||||||
SignalQueue::SignalQueue() {
|
SignalQueue::SignalQueue() {
|
||||||
|
@ -15,8 +15,8 @@
|
|||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
|
||||||
|
|
||||||
|
#include <ndb_global.h>
|
||||||
#include <mgmapi.h>
|
#include <mgmapi.h>
|
||||||
#include <string.h>
|
|
||||||
#include <NdbMain.h>
|
#include <NdbMain.h>
|
||||||
#include <NdbOut.hpp>
|
#include <NdbOut.hpp>
|
||||||
#include <NdbSleep.h>
|
#include <NdbSleep.h>
|
||||||
|
Reference in New Issue
Block a user