1
/* Copyright (C) 2003 MySQL AB
3
This program is free software; you can redistribute it and/or modify
4
it under the terms of the GNU General Public License as published by
5
the Free Software Foundation; version 2 of the License.
7
This program is distributed in the hope that it will be useful,
8
but WITHOUT ANY WARRANTY; without even the implied warranty of
9
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
GNU General Public License for more details.
12
You should have received a copy of the GNU General Public License
13
along with this program; if not, write to the Free Software
14
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
16
#include "Ndbcntr.hpp"
18
#define arrayLength(x) sizeof(x)/sizeof(x[0])
22
static const Ndbcntr::SysColumn
25
DictTabInfo::ExtUnsigned, 1,
29
DictTabInfo::ExtBigunsigned, 1,
34
const Ndbcntr::SysTable
35
Ndbcntr::g_sysTable_SYSTAB_0 = {
37
arrayLength(column_SYSTAB_0), column_SYSTAB_0,
38
DictTabInfo::SystemTable,
39
DictTabInfo::AllNodesSmallTable,
45
static const Ndbcntr::SysColumn
46
column_NDBEVENTS_0[] = {
48
DictTabInfo::ExtBinary, MAX_TAB_NAME_SIZE,
52
DictTabInfo::ExtUnsigned, 1,
56
DictTabInfo::ExtUnsigned, 1,
60
DictTabInfo::ExtUnsigned, 1,
64
DictTabInfo::ExtBinary, MAX_TAB_NAME_SIZE,
67
{ 5, "ATTRIBUTE_MASK",
68
DictTabInfo::ExtUnsigned, MAXNROFATTRIBUTESINWORDS,
72
DictTabInfo::ExtUnsigned, 1,
76
DictTabInfo::ExtUnsigned, 1,
81
const Ndbcntr::SysTable
82
Ndbcntr::g_sysTable_NDBEVENTS_0 = {
83
"sys/def/NDB$EVENTS_0",
84
arrayLength(column_NDBEVENTS_0), column_NDBEVENTS_0,
85
DictTabInfo::SystemTable,
86
DictTabInfo::AllNodesSmallTable,
92
const Ndbcntr::SysTable*
93
Ndbcntr::g_sysTableList[] = {
95
&g_sysTable_NDBEVENTS_0
98
//TODO Backup needs this info to allocate appropriate number of records
101
Ndbcntr::g_sysTableCount = arrayLength(Ndbcntr::g_sysTableList);