1 /* Copyright (c) 2003, 2005 MySQL AB
2    Use is subject to license terms
3 
4    This program is free software; you can redistribute it and/or modify
5    it under the terms of the GNU General Public License as published by
6    the Free Software Foundation; version 2 of the License.
7 
8    This program is distributed in the hope that it will be useful,
9    but WITHOUT ANY WARRANTY; without even the implied warranty of
10    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11    GNU General Public License for more details.
12 
13    You should have received a copy of the GNU General Public License
14    along with this program; if not, write to the Free Software
15    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA */
16 
17 #ifndef BLOCK_COMMIT_ORD_HPP
18 #define BLOCK_COMMIT_ORD_HPP
19 
20 /**
21  * These two signals are sent via EXECUTE_DIRECT
22  *   to DBDIH from QMGR
23  *
24  * Block make sure that no commit is performed
25  * Unblock turns on commit again
26  */
27 
28 class BlockCommitOrd {
29   /**
30    * Sender(s)
31    */
32   friend class Qmgr;
33 
34   /**
35    * Reciver(s)
36    */
37   friend class Dbdih;
38 public:
39   STATIC_CONST( SignalLength = 1 );
40 
41 private:
42   Uint32 failNo; // As used by Qmgr
43 };
44 
45 class UnblockCommitOrd {
46   /**
47    * Sender(s)
48    */
49   friend class Qmgr;
50 
51   /**
52    * Reciver(s)
53    */
54   friend class Dbdih;
55 public:
56   STATIC_CONST( SignalLength = 1 );
57 
58 private:
59   Uint32 failNo; // As used by Qmgr
60 };
61 
62 #endif
63