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

« back to all changes in this revision

Viewing changes to storage/ndb/include/kernel/signaldata/TransIdAI.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 TRANSID_AI_HPP
 
17
#define TRANSID_AI_HPP
 
18
 
 
19
#include "SignalData.hpp"
 
20
 
 
21
class TransIdAI {
 
22
  /**
 
23
   * Sender(s)
 
24
   */
 
25
  friend class Dbtup;
 
26
  
 
27
  /**
 
28
   * Receiver(s)
 
29
   */
 
30
  friend class NdbTransaction;
 
31
  friend class Dbtc;
 
32
  friend class Dbutil;
 
33
  friend class Dblqh;
 
34
  friend class Suma;
 
35
 
 
36
  friend bool printTRANSID_AI(FILE *, const Uint32 *, Uint32, Uint16);
 
37
  
 
38
public:
 
39
  STATIC_CONST( HeaderLength = 3 );
 
40
  STATIC_CONST( DataLength = 22 );
 
41
 
 
42
  // Public methods
 
43
public:
 
44
 Uint32* getData() const;
 
45
 
 
46
public:
 
47
  Uint32 connectPtr;
 
48
  Uint32 transId[2];
 
49
  Uint32 attrData[DataLength];
 
50
};
 
51
 
 
52
inline
 
53
Uint32* TransIdAI::getData() const
 
54
{
 
55
  return (Uint32*)&attrData[0];
 
56
}
 
57
 
 
58
#endif