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

« back to all changes in this revision

Viewing changes to storage/ndb/include/kernel/signaldata/DropObj.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 DROP_OBJ_HPP
 
17
#define DROP_OBJ_HPP
 
18
 
 
19
#include "DictObjOp.hpp"
 
20
#include "SignalData.hpp"
 
21
 
 
22
struct DropObjReq 
 
23
{
 
24
  /**
 
25
   * Sender(s)
 
26
   */
 
27
  friend class Dbdict;
 
28
 
 
29
  /**
 
30
   * Receiver(s)
 
31
   */
 
32
  friend class Dbtc;
 
33
  friend class Dblqh;
 
34
  friend class Dbacc;
 
35
  friend class Dbtup;
 
36
  friend class Dbtux;
 
37
  friend class Dbdih;
 
38
  
 
39
  friend bool printDROP_OBJ_REQ(FILE *, const Uint32 *, Uint32, Uint16);
 
40
  STATIC_CONST( SignalLength = 9 );
 
41
 
 
42
  Uint32 op_key;
 
43
  Uint32 objId;
 
44
  Uint32 objType;
 
45
  Uint32 objVersion;
 
46
 
 
47
  Uint32 senderRef;
 
48
  Uint32 senderData;
 
49
 
 
50
  Uint32 requestInfo;
 
51
 
 
52
  Uint32 clientRef;
 
53
  Uint32 clientData;
 
54
};
 
55
 
 
56
class DropObjConf {
 
57
  /**
 
58
   * Sender(s)
 
59
   */
 
60
  friend class Dbtc;
 
61
  friend class Dblqh;
 
62
  friend class Dbacc;
 
63
  friend class Dbtup;
 
64
  friend class Dbtux;
 
65
  friend class Dbdih;
 
66
 
 
67
  /**
 
68
   * Receiver(s)
 
69
   */
 
70
  friend class Dbdict;
 
71
 
 
72
  friend bool printDROP_OBJ_CONF(FILE *, const Uint32 *, Uint32, Uint16);
 
73
public:
 
74
  STATIC_CONST( SignalLength = 3 );
 
75
 
 
76
private:
 
77
  Uint32 senderRef;
 
78
  Uint32 senderData;
 
79
  Uint32 objId;
 
80
};
 
81
 
 
82
class DropObjRef {
 
83
  /**
 
84
   * Sender(s)
 
85
   */
 
86
  friend class Dbtc;
 
87
  friend class Dblqh;
 
88
  friend class Dbacc;
 
89
  friend class Dbtup;
 
90
  friend class Dbtux;
 
91
  friend class Dbdih;
 
92
 
 
93
  /**
 
94
   * Receiver(s)
 
95
   */
 
96
  friend class Dbdict;
 
97
 
 
98
  friend bool printDROP_OBJ_REF(FILE *, const Uint32 *, Uint32, Uint16);
 
99
public:
 
100
  STATIC_CONST( SignalLength = 4 );
 
101
 
 
102
  enum ErrorCode {
 
103
    NoSuchObj = 1,
 
104
    DropWoPrep = 2, // Calling Drop with first calling PrepDrop
 
105
    PrepDropInProgress = 3,
 
106
    DropInProgress = 4,
 
107
    NF_FakeErrorREF = 5
 
108
  };
 
109
  
 
110
private:
 
111
  Uint32 senderRef;
 
112
  Uint32 senderData;
 
113
  Uint32 objId;
 
114
  Uint32 errorCode;
 
115
};
 
116
 
 
117
#endif