~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

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 TUP_KEY_H
 
17
#define TUP_KEY_H
 
18
 
 
19
#include "SignalData.hpp"
 
20
 
 
21
class TupKeyReq {
 
22
  /**
 
23
   * Reciver(s)
 
24
   */
 
25
  friend class Dbtup;
 
26
 
 
27
  /**
 
28
   * Sender(s)
 
29
   */
 
30
  friend class Dblqh;
 
31
 
 
32
  /**
 
33
   * For printing
 
34
   */
 
35
  friend bool printTUPKEYREQ(FILE * output, const Uint32 * theData, Uint32 len, Uint16 receiverBlockNo);
 
36
 
 
37
public:
 
38
  STATIC_CONST( SignalLength = 18 );
 
39
 
 
40
private:
 
41
 
 
42
  /**
 
43
   * DATA VARIABLES
 
44
   */
 
45
  Uint32 connectPtr;
 
46
  Uint32 request;
 
47
  Uint32 keyRef1;
 
48
  Uint32 keyRef2;
 
49
  Uint32 attrBufLen;
 
50
  Uint32 opRef;
 
51
  Uint32 applRef;
 
52
  Uint32 storedProcedure;
 
53
  Uint32 transId1;
 
54
  Uint32 transId2;
 
55
  Uint32 fragPtr;
 
56
  Uint32 primaryReplica;
 
57
  Uint32 coordinatorTC;
 
58
  Uint32 tcOpIndex;
 
59
  Uint32 savePointId;
 
60
  Uint32 disk_page;
 
61
  Uint32 m_row_id_page_no;
 
62
  Uint32 m_row_id_page_idx;
 
63
};
 
64
 
 
65
class TupKeyConf {
 
66
  /**
 
67
   * Reciver(s)
 
68
   */
 
69
  friend class Dblqh;
 
70
 
 
71
  /**
 
72
   * Sender(s)
 
73
   */
 
74
  friend class Dbtup;
 
75
 
 
76
  /**
 
77
   * For printing
 
78
   */
 
79
  friend bool printTUPKEYCONF(FILE * output, const Uint32 * theData, Uint32 len, Uint16 receiverBlockNo);
 
80
 
 
81
public:
 
82
  STATIC_CONST( SignalLength = 6 );
 
83
 
 
84
private:
 
85
 
 
86
  /**
 
87
   * DATA VARIABLES
 
88
   */
 
89
  Uint32 userPtr;
 
90
  Uint32 readLength;
 
91
  Uint32 writeLength;
 
92
  Uint32 noFiredTriggers;
 
93
  Uint32 lastRow;
 
94
  Uint32 rowid;
 
95
};
 
96
 
 
97
class TupKeyRef {
 
98
  /**
 
99
   * Reciver(s)
 
100
   */
 
101
  friend class Dblqh;      
 
102
 
 
103
  /**
 
104
   * Sender(s)
 
105
   */
 
106
  friend class Dbtup;
 
107
 
 
108
  /**
 
109
   * For printing
 
110
   */
 
111
  friend bool printTUPKEYREF(FILE * output, const Uint32 * theData, Uint32 len, Uint16 receiverBlockNo);
 
112
 
 
113
public:
 
114
  STATIC_CONST( SignalLength = 2 );
 
115
 
 
116
private:
 
117
 
 
118
  /**
 
119
   * DATA VARIABLES
 
120
   */
 
121
  Uint32 userRef;
 
122
  Uint32 errorCode;
 
123
};
 
124
 
 
125
#endif