~ubuntu-branches/ubuntu/trusty/mysql-5.6/trusty

« back to all changes in this revision

Viewing changes to storage/ndb/include/kernel/signaldata/DumpStateOrd.hpp

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-02-12 11:54:27 UTC
  • Revision ID: package-import@ubuntu.com-20140212115427-oq6tfsqxl1wuwehi
Tags: upstream-5.6.15
ImportĀ upstreamĀ versionĀ 5.6.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
   Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
 
3
 
 
4
   This program is free software; you can redistribute it and/or modify
 
5
   it under the terms of the GNU General Public License as published by
 
6
   the Free Software Foundation; version 2 of the License.
 
7
 
 
8
   This program is distributed in the hope that it will be useful,
 
9
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
   GNU General Public License for more details.
 
12
 
 
13
   You should have received a copy of the GNU General Public License
 
14
   along with this program; if not, write to the Free Software
 
15
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA
 
16
*/
 
17
 
 
18
#ifndef DUMP_STATE_ORD_HPP
 
19
#define DUMP_STATE_ORD_HPP
 
20
 
 
21
#include "SignalData.hpp"
 
22
 
 
23
/**
 
24
 * DumpStateOrd is sent by the mgmtsrvr to CMVMI.
 
25
 * CMVMI the redirect the signal to all blocks.
 
26
 *
 
27
 * The implementation of the DumpStateOrd should dump state information
 
28
 * (typically using the infoEvent-function)
 
29
 */
 
30
class DumpStateOrd {
 
31
  /**
 
32
   * Sender/Reciver
 
33
   */
 
34
  friend class Cmvmi;
 
35
 
 
36
  /**
 
37
   * Sender(s)
 
38
   */
 
39
  friend class MgmtSrvr;
 
40
  
 
41
  /**
 
42
   * Reciver(s)
 
43
   */
 
44
  friend class Dbacc;
 
45
  friend class Dblqh;
 
46
  friend class Dbtup;
 
47
  friend class Dbtc;
 
48
  friend class Ndbcntr;
 
49
  friend class Qmgr;
 
50
  friend class Dbdih;
 
51
  friend class Dbdict;
 
52
  friend class Ndbfs;
 
53
 
 
54
public:
 
55
  enum DumpStateType {
 
56
    /* any dumps above this value should go to one block only */
 
57
    OneBlockOnly = 100000,
 
58
 
 
59
    _BackupMin   = 100000,
 
60
    BackupStatus = 100000,
 
61
    _BackupMax   = 100999,
 
62
 
 
63
    _TCMin       = 101000,
 
64
    _TCMax       = 101999,
 
65
 
 
66
    _LQHMin = 102000,
 
67
    LQHLogFileInitStatus = 102000,
 
68
    _LQHMax = 102999,
 
69
 
 
70
    // 1 QMGR Dump information about phase 1 variables
 
71
    // 13 CMVMI Dump signal counter
 
72
    // 13 NDBCNTR Dump start phase information
 
73
    // 13 NDBCNTR_REF  Dump start phase information
 
74
    CommitAckMarkersSize = 14, // TC+LQH Dump free size in commitAckMarkerP
 
75
    CommitAckMarkersDump = 15, // TC+LQH Dump info in commitAckMarkerPool
 
76
    DihDumpNodeRestartInfo = 16, // 16 DIH Dump node restart info
 
77
    DihDumpNodeStatusInfo = 17,// 17 DIH Dump node status info
 
78
    DihPrintFragmentation = 18,// 18 DIH Print fragmentation
 
79
    // 19 NDBFS Fipple with O_SYNC, O_CREATE etc.
 
80
    // 20-24 BACKUP
 
81
    NdbcntrTestStopOnError = 25,
 
82
    NdbcntrStopNodes = 70,
 
83
    // 100-105 TUP and ACC  
 
84
    // 200-240 UTIL
 
85
    // 300-305 TRIX
 
86
    QmgrErr935 = 935,
 
87
    NdbfsDumpFileStat = 400,
 
88
    NdbfsDumpAllFiles = 401,
 
89
    NdbfsDumpOpenFiles = 402,
 
90
    NdbfsDumpIdleFiles = 403,
 
91
    CmvmiSchedulerExecutionTimer = 502,
 
92
    CmvmiRealtimeScheduler = 503,
 
93
    CmvmiExecuteLockCPU = 504,
 
94
    CmvmiMaintLockCPU = 505,
 
95
    CmvmiSchedulerSpinTimer = 506,
 
96
    // 1222-1225 DICT
 
97
    LqhDumpAllDefinedTabs = 1332,
 
98
    LqhDumpNoLogPages = 1333,
 
99
    LqhDumpOneScanRec = 2300,
 
100
    LqhDumpAllScanRec = 2301,
 
101
    LqhDumpAllActiveScanRec = 2302,
 
102
    LqhDumpLcpState = 2303,
 
103
    LqhErrorInsert5042 = 2315,
 
104
 
 
105
    AccDumpOneScanRec = 2400,
 
106
    AccDumpAllScanRec = 2401,
 
107
    AccDumpAllActiveScanRec = 2402,
 
108
    AccDumpOneOperationRec = 2403,
 
109
    AccDumpNumOpRecs = 2404,
 
110
    AccDumpFreeOpRecs = 2405,
 
111
    AccDumpNotFreeOpRecs = 2406,
 
112
    DumpPageMemory = 1000, // Acc & TUP
 
113
    TcDumpAllScanFragRec = 2500,
 
114
    TcDumpOneScanFragRec = 2501,
 
115
    TcDumpAllScanRec = 2502,
 
116
    TcDumpAllActiveScanRec = 2503,
 
117
    TcDumpOneScanRec = 2504,
 
118
    TcDumpOneApiConnectRec = 2505,
 
119
    TcDumpAllApiConnectRec = 2506,
 
120
    TcSetTransactionTimeout = 2507,
 
121
    TcSetApplTransactionTimeout = 2508,
 
122
    TcStartDumpIndexOpCount = 2512,
 
123
    TcDumpIndexOpCount = 2513,
 
124
    CmvmiDumpConnections = 2600,
 
125
    CmvmiDumpLongSignalMemory = 2601,
 
126
    CmvmiSetRestartOnErrorInsert = 2602,
 
127
    CmvmiTestLongSigWithDelay = 2603,
 
128
    CmvmiDumpSubscriptions = 2604, /* note: done to respective outfile
 
129
                                      to be able to debug if events
 
130
                                      for some reason does not end up
 
131
                                      in clusterlog */
 
132
    CmvmiTestLongSig = 2605,  /* Long signal testing trigger */
 
133
    DumpEventLog = 2606,
 
134
    LCPContinue = 5900,
 
135
    // 7000 DIH
 
136
    // 7001 DIH
 
137
    // 7002 DIH
 
138
    // 7003 DIH
 
139
    // 7004 DIH
 
140
    // 7005 DIH
 
141
    // 7006 DIH
 
142
    // 7006 DIH
 
143
    // 7007 DIH
 
144
    // 7008 DIH
 
145
    // 7009 DIH
 
146
    // 7010 DIH
 
147
    // 7011 DIH
 
148
    // 7012 DIH
 
149
    DihDumpLCPState= 7013,
 
150
    DihDumpLCPMasterTakeOver = 7014,    
 
151
    // 7015 DIH
 
152
    DihAllAllowNodeStart = 7016,
 
153
    DihMinTimeBetweenLCP = 7017,
 
154
    DihMaxTimeBetweenLCP = 7018,
 
155
    // 7019
 
156
    // 7020
 
157
    // 7021
 
158
    EnableUndoDelayDataWrite = 7080, // DIH+ACC+TUP
 
159
    DihSetTimeBetweenGcp = 7090,
 
160
    DihStartLcpImmediately = 7099,
 
161
    // 8000 Suma
 
162
    // 12000 Tux
 
163
    TuxLogToFile = 12001,
 
164
    TuxSetLogFlags = 12002,
 
165
    TuxMetaDataJunk = 12009,
 
166
    
 
167
    DumpTsman = 9800, 
 
168
    DumpLgman = 10000,
 
169
    DumpPgman = 11000,
 
170
    DumpBackup = 13000,
 
171
    DumpBackupSetCompressed = 13001,
 
172
    DumpBackupSetCompressedLCP = 13002,
 
173
    BackupErrorInsert = 13003,
 
174
 
 
175
    DumpDbinfo = 14000,
 
176
    DbinfoListTables = 14001,
 
177
    DbinfoListColumns = 14002,
 
178
    DbinfoScanTable = 14003,
 
179
 
 
180
    SchemaResourceSnapshot = 4000, // Save resource consumption
 
181
    SchemaResourceCheckLeak = 4001 // check same as snapshot
 
182
  };
 
183
public:
 
184
  
 
185
  Uint32 args[25];          // Generic argument
 
186
};
 
187
 
 
188
#endif