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

« back to all changes in this revision

Viewing changes to storage/ndb/include/kernel/signaldata/AbortAll.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 ABORT_ALL_REQ_HPP
 
17
#define ABORT_ALL_REQ_HPP
 
18
 
 
19
#include "SignalData.hpp"
 
20
 
 
21
class AbortAllReq {
 
22
 
 
23
  /**
 
24
   * Reciver(s)
 
25
   */
 
26
  friend class Dbtc;
 
27
 
 
28
  /**
 
29
   * Sender
 
30
   */
 
31
  friend class Ndbcntr;
 
32
 
 
33
public:
 
34
  STATIC_CONST( SignalLength = 2 );
 
35
  
 
36
public:
 
37
  
 
38
  Uint32 senderRef;
 
39
  Uint32 senderData;
 
40
};
 
41
 
 
42
class AbortAllConf {
 
43
  
 
44
  /**
 
45
   * Reciver(s)
 
46
   */
 
47
  friend class Ndbcntr;
 
48
  
 
49
  /**
 
50
   * Sender
 
51
   */
 
52
  friend class Dbtc;
 
53
 
 
54
public:
 
55
  STATIC_CONST( SignalLength = 1 );
 
56
  
 
57
public:
 
58
  Uint32 senderData;
 
59
};
 
60
 
 
61
class AbortAllRef {
 
62
  
 
63
  /**
 
64
   * Reciver(s)
 
65
   */
 
66
  friend class Ndbcntr;
 
67
  
 
68
  /**
 
69
   * Sender
 
70
   */
 
71
  friend class Dbtc;
 
72
 
 
73
public:
 
74
  STATIC_CONST( SignalLength = 2 );
 
75
  
 
76
  enum ErrorCode {
 
77
    InvalidState = 1,
 
78
    AbortAlreadyInProgress = 2,
 
79
    FunctionNotImplemented = 3
 
80
  };
 
81
public:
 
82
  Uint32 senderData;
 
83
  Uint32 errorCode;
 
84
};
 
85
 
 
86
#endif
 
87