MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DihAddFrag.hpp
1 /*
2  Copyright (C) 2003, 2005, 2006 MySQL AB
3  All rights reserved. Use is subject to license terms.
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; version 2 of the License.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 
19 #ifndef DIHADDFRAG_HPP
20 #define DIHADDFRAG_HPP
21 
22 #include <NodeBitmask.hpp>
23 #include <ndb_limits.h>
24 
32  friend class Dbdih;
33 
34 public:
35  STATIC_CONST( SignalLength = 2 );
36 private:
37  Uint32 senderNodeId;
38  Uint32 tableId;
39 };
47  friend class Dbdih;
48 
49 public:
50  STATIC_CONST( SignalLength = 10 + MAX_REPLICAS );
51 private:
52  Uint32 masterRef;
53  Uint32 tableId;
54  Uint32 fragId;
55  Uint32 kValue;
56  Uint32 method;
57  Uint32 mask;
58  Uint32 hashPointer;
59  Uint32 noOfFragments;
60  Uint32 noOfBackups;
61  Uint32 storedTable;
62  Uint32 nodes[MAX_REPLICAS];
63 };
64 #endif