MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DihScanTab.hpp
1 /* Copyright (C) 2008 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 DIH_SCAN_TAB_HPP
17 #define DIH_SCAN_TAB_HPP
18 
19 #include "SignalData.hpp"
20 
25 {
26  STATIC_CONST( SignalLength = 4 );
27  STATIC_CONST( RetryInterval = 5 );
28 
29  Uint32 tableId;
30  Uint32 senderData;
31  Uint32 senderRef;
32  Uint32 schemaTransId;
33 };
34 
39 {
40  STATIC_CONST( SignalLength = 6 );
41 
42  Uint32 tableId;
43  Uint32 senderData;
44  Uint32 fragmentCount;
45  Uint32 noOfBackups;
46  Uint32 scanCookie;
47  Uint32 reorgFlag;
48 };
49 
51 {
52  STATIC_CONST( SignalLength = 5 );
53  Uint32 tableId;
54  Uint32 senderData;
55  Uint32 senderRef;
56  Uint32 fragId;
57  Uint32 scanCookie;
58 };
59 
61 {
62  STATIC_CONST( SignalLength = 9 );
63 
64  Uint32 senderData;
65  Uint32 nodes[4];
66  Uint32 count;
67  Uint32 tableId;
68  Uint32 fragId;
69  Uint32 instanceKey;
70 };
71 
76 {
77  enum ErrorCode {
78  ErroneousState = 0,
79  ErroneousTableState = 1
80  };
81  STATIC_CONST( SignalLength = 5 );
82 
83  Uint32 tableId;
84  Uint32 senderData;
85  Uint32 error;
86  Uint32 tableStatus; // Dbdih::TabRecord::tabStatus
87  Uint32 schemaTransId;
88 };
89 
91 {
92  STATIC_CONST( SignalLength = 2 );
93 
94  Uint32 tableId;
95  Uint32 scanCookie;
96 };
97 
98 #endif