~vadim-tk/percona-server/percona-5.5.15-galera

« back to all changes in this revision

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

  • Committer: root
  • Date: 2011-09-10 16:37:18 UTC
  • Revision ID: root@r815.office.percona.com-20110910163718-ydh4zj8hcdgoyavb
Porting Galera to 5.5.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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
 
15
 
 
16
#ifndef DIADDTABREQ_HPP
 
17
#define DIADDTABREQ_HPP
 
18
 
 
19
#include "SignalData.hpp"
 
20
 
 
21
class DiAddTabReq {
 
22
  /**
 
23
   * Sender(s)
 
24
   */
 
25
  friend class Dbdict;
 
26
 
 
27
  /**
 
28
   * Receiver(s)
 
29
   */
 
30
  friend class Dbdih;
 
31
public:
 
32
  STATIC_CONST( SignalLength = 10 );
 
33
  SECTION( FRAGMENTATION = 0 );
 
34
  SECTION( TS_RANGE = 0 );
 
35
  
 
36
private:
 
37
  Uint32 connectPtr;
 
38
  Uint32 tableId;
 
39
  Uint32 fragType;
 
40
  Uint32 kValue;
 
41
  Uint32 noOfReplicas; //Currently not used
 
42
  Uint32 loggedTable;
 
43
  Uint32 tableType;
 
44
  Uint32 schemaVersion;
 
45
  Uint32 primaryTableId;
 
46
  Uint32 temporaryTable;
 
47
};
 
48
 
 
49
class DiAddTabRef {
 
50
  /**
 
51
   * Sender(s)
 
52
   */
 
53
  friend class Dbdih;
 
54
 
 
55
  /**
 
56
   * Receiver(s)
 
57
   */
 
58
  friend class Dbdict;
 
59
public:
 
60
  STATIC_CONST( SignalLength = 2 );
 
61
  
 
62
private:
 
63
  union {
 
64
    Uint32 connectPtr;
 
65
    Uint32 senderData;
 
66
  };
 
67
  Uint32 errorCode;
 
68
};
 
69
 
 
70
class DiAddTabConf {
 
71
  /**
 
72
   * Sender(s)
 
73
   */
 
74
  friend class Dbdih;
 
75
 
 
76
  /**
 
77
   * Receiver(s)
 
78
   */
 
79
  friend class Dbdict;
 
80
public:
 
81
  STATIC_CONST( SignalLength = 1 );
 
82
  
 
83
private:
 
84
  union {
 
85
    Uint32 connectPtr;
 
86
    Uint32 senderData;
 
87
  };
 
88
};
 
89
 
 
90
 
 
91
#endif