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

« back to all changes in this revision

Viewing changes to storage/ndb/include/kernel/signaldata/IndexStatSignal.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
/* Copyright (C) 2003 MySQL AB
 
2
 
 
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.
 
6
 
 
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.
 
11
 
 
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */
 
15
 
 
16
#ifndef INDEX_STAT_SIGNAL_DATA_HPP
 
17
#define INDEX_STAT_SIGNAL_DATA_HPP
 
18
 
 
19
#include "SignalData.hpp"
 
20
 
 
21
struct IndexStatReq {
 
22
  enum RequestType {
 
23
    // update
 
24
    RT_UPDATE_STAT = 1,
 
25
    RT_CLEAN_NEW = 2,
 
26
    RT_SCAN_FRAG = 3,
 
27
    RT_CLEAN_OLD = 4,
 
28
    RT_START_MON = 5,
 
29
    // delete
 
30
    RT_DELETE_STAT = 6,
 
31
    RT_STOP_MON = 7,
 
32
    RT_DROP_HEAD = 8,
 
33
    RT_CLEAN_ALL = 9
 
34
  };
 
35
  STATIC_CONST( SignalLength = 9 );
 
36
  Uint32 clientRef;
 
37
  Uint32 clientData;
 
38
  Uint32 transId;
 
39
  Uint32 transKey;
 
40
  Uint32 requestInfo;
 
41
  Uint32 requestFlag;
 
42
  Uint32 indexId;
 
43
  Uint32 indexVersion;
 
44
  Uint32 tableId;
 
45
};
 
46
 
 
47
struct IndexStatImplReq {
 
48
  STATIC_CONST( SignalLength = 10 );
 
49
  Uint32 senderRef;
 
50
  Uint32 senderData;
 
51
  Uint32 transId;
 
52
  Uint32 requestType;
 
53
  Uint32 requestFlag;
 
54
  Uint32 indexId;
 
55
  Uint32 indexVersion;
 
56
  Uint32 tableId;
 
57
  Uint32 fragId;
 
58
  Uint32 fragCount;
 
59
};
 
60
 
 
61
struct IndexStatConf {
 
62
  STATIC_CONST( SignalLength = 3 );
 
63
  Uint32 senderRef;
 
64
  union { Uint32 senderData; Uint32 clientData; };
 
65
  Uint32 transId;
 
66
};
 
67
 
 
68
struct IndexStatImplConf {
 
69
  STATIC_CONST( SignalLength = 2 );
 
70
  Uint32 senderRef;
 
71
  Uint32 senderData;
 
72
};
 
73
 
 
74
struct IndexStatRef {
 
75
  enum ErrorCode {
 
76
    Busy = 701,
 
77
    NotMaster = 702,
 
78
    InvalidIndex = 913,
 
79
    InvalidRequest = 914,
 
80
    NoFreeStatOp = 915,
 
81
    InvalidSysTable = 916,
 
82
    InvalidSysTableData = 917,
 
83
    BusyUtilPrepare = 918,
 
84
    BusyUtilExecute = 919
 
85
  };
 
86
  STATIC_CONST( SignalLength = 7 );
 
87
  Uint32 senderRef;
 
88
  union { Uint32 senderData; Uint32 clientData; };
 
89
  Uint32 transId;
 
90
  Uint32 errorCode;
 
91
  Uint32 errorLine;
 
92
  Uint32 errorNodeId;
 
93
  Uint32 masterNodeId;
 
94
};
 
95
 
 
96
struct IndexStatImplRef {
 
97
  STATIC_CONST( SignalLength = 4 );
 
98
  Uint32 senderRef;
 
99
  Uint32 senderData;
 
100
  Uint32 errorCode;
 
101
  Uint32 errorLine;
 
102
};
 
103
 
 
104
struct IndexStatRep {
 
105
  enum RequestType {
 
106
    RT_UPDATE_REQ = 1,  // TUX->DICT request stats update
 
107
    RT_UPDATE_CONF = 2  // TRIX->TUX report stats update
 
108
  };
 
109
  STATIC_CONST( SignalLength = 9 );
 
110
  Uint32 senderRef;
 
111
  Uint32 senderData;
 
112
  Uint32 requestType;
 
113
  Uint32 requestFlag;
 
114
  Uint32 indexId;
 
115
  Uint32 indexVersion;
 
116
  Uint32 tableId;
 
117
  Uint32 fragId;
 
118
  Uint32 loadTime;
 
119
};
 
120
 
 
121
#endif