MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ContinueFragmented.hpp
1 /*
2  Copyright (C) 2003, 2005, 2006 MySQL AB, 2009 Sun Microsystems, Inc.
3  All rights reserved. Use is subject to license terms.
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; version 2 of the License.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 
19 #ifndef CONTINUE_FRAGMENTED_HPP
20 #define CONTINUE_FRAGMENTED_HPP
21 
22 #include "SignalData.hpp"
23 
25 
29  friend class SimulatedBlock;
30 
31  friend bool printCONTINUE_FRAGMENTED(FILE *,const Uint32 *, Uint32, Uint16);
32 public:
33 
34 private:
35  enum {
36  CONTINUE_SENDING = 0,
37  CONTINUE_CLEANUP = 1
38  };
39 
40  STATIC_CONST(CONTINUE_CLEANUP_FIXED_WORDS = 5);
41 
42  enum {
43  RES_FRAGSEND = 0, /* Fragmented send lists */
44  RES_FRAGINFO = 1, /* Fragmented signal assembly hash */
45  RES_LAST = 2 /* Must be last */
46  };
47 
48  Uint32 type;
49 
50  union
51  {
52  Uint32 line; /* For CONTINUE_SENDING */
53  struct /* For CONTINUE_CLEANUP */
54  {
55  Uint32 failedNodeId;
56  Uint32 resource;
57  Uint32 cursor;
58  Uint32 elementsCleaned;
59  Uint32 callbackStart; /* Callback structure placed here */
60  } cleanup;
61  };
62 };
63 
64 #endif