MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DihContinueB.cpp
1 /*
2  Copyright (C) 2003-2008 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 
20 #include <signaldata/DihContinueB.hpp>
21 
22 bool
23 printCONTINUEB_DBDIH(FILE * output, const Uint32 * theData,
24  Uint32 len, Uint16 not_used){
25 
26  (void)not_used;
27 
28  switch (theData[0]) {
29  case DihContinueB::ZPACK_TABLE_INTO_PAGES:
30  fprintf(output, " Pack Table Into Pages: %d\n", theData[1]);
31  return true;
32  break;
33  case DihContinueB::ZPACK_FRAG_INTO_PAGES:
34  fprintf(output, " Pack Frag Into Pages: Table: %d Fragment: %d PageIndex: %d WordIndex: %d\n",
35  theData[1], theData[2], theData[3], theData[4]);
36  return true;
37  break;
38  case DihContinueB::ZREAD_PAGES_INTO_TABLE:
39  fprintf(output, " Read Pages Into Table: %d\n", theData[1]);
40  return true;
41  break;
42  case DihContinueB::ZREAD_PAGES_INTO_FRAG:
43  fprintf(output, " Read Pages Into Frag: Table: %d Fragment: %d PageIndex: %d WordIndex: %d\n",
44  theData[1], theData[2], theData[3], theData[4]);
45  return true;
46  break;
47 #if 0
48  case DihContinueB::ZREAD_TAB_DESCRIPTION:
49  fprintf(output, " Read Table description: %d\n", theData[1]);
50  return true;
51  break;
52 #endif
53  case DihContinueB::ZCOPY_TABLE:
54  fprintf(output, " Copy Table: %d\n", theData[1]);
55  return true;
56  break;
57  case DihContinueB::ZCOPY_TABLE_NODE:
58  fprintf(output, " Copy table node: TableId: %d NodeId: %d\n",
59  theData[1], theData[2]);
60  fprintf(output, "PageIndex: %d WordIndex: %d NoOfWords: %d\n",
61  theData[3], theData[4], theData[5]);
62  return true;
63  break;
64  case DihContinueB::ZSTART_FRAGMENT:
65  fprintf(output, " Start fragment: Table: %d Fragment: %d\n",
66  theData[1], theData[2]);
67  return true;
68  break;
69  case DihContinueB::ZCOMPLETE_RESTART:
70  fprintf(output, "Complete Restart\n");
71  return true;
72  break;
73  case DihContinueB::ZREAD_TABLE_FROM_PAGES:
74  fprintf(output, " Read Table From Pages: Table: %d\n", theData[1]);
75  return true;
76  break;
77  case DihContinueB::ZSR_PHASE2_READ_TABLE:
78  fprintf(output, " Phase 2 Read Table: Table: %d\n", theData[1]);
79  return true;
80  break;
81  case DihContinueB::ZCHECK_TC_COUNTER:
82  fprintf(output, " Check Tc Counter from place %d\n", theData[1]);
83  return true;
84  break;
85  case DihContinueB::ZCALCULATE_KEEP_GCI:
86  fprintf(output, " Calc Keep GCI: Table: %d Fragment: %d\n",
87  theData[1], theData[2]);
88  return true;
89  break;
90  case DihContinueB::ZSTORE_NEW_LCP_ID:
91  fprintf(output, " Store New LCP Id\n");
92  return true;
93  break;
94  case DihContinueB::ZTABLE_UPDATE:
95  fprintf(output, " Table Update: Table: %d\n", theData[1]);
96  return true;
97  break;
98  case DihContinueB::ZCHECK_LCP_COMPLETED:
99  fprintf(output, " Check LCP Completed: TableId %d\n", theData[1]);
100  return true;
101  break;
102  case DihContinueB::ZINIT_LCP:
103  fprintf(output, " Init LCP: Table: %d\n", theData[1]);
104  return true;
105  break;
106  case DihContinueB::ZADD_TABLE_MASTER_PAGES:
107  fprintf(output, " Add Table Master Pages: Table: %d\n", theData[1]);
108  return true;
109  break;
110  case DihContinueB::ZDIH_ADD_TABLE_MASTER:
111  fprintf(output, " Dih Add Table Master: Table: %d\n", theData[1]);
112  return true;
113  break;
114  case DihContinueB::ZADD_TABLE_SLAVE_PAGES:
115  fprintf(output, " Add Table Slave Pages: Table: %d\n", theData[1]);
116  return true;
117  break;
118  case DihContinueB::ZDIH_ADD_TABLE_SLAVE:
119  fprintf(output, " Add Table Slave: Table: %d\n", theData[1]);
120  return true;
121  break;
122  case DihContinueB::ZSTART_GCP:
123  fprintf(output, " Start GCP\n");
124  return true;
125  break;
126  case DihContinueB::ZCOPY_GCI:
127  fprintf(output, " Copy GCI\n");
128  return true;
129  break;
130  case DihContinueB::ZEMPTY_VERIFY_QUEUE:
131  fprintf(output, " Empty Verify Queue\n");
132  return true;
133  break;
134  case DihContinueB::ZCHECK_GCP_STOP:
135  fprintf(output, " Check GCP Stop\n");
136  if (len == 6){
137  fprintf(output, "coldGcpStatus = %d\n", theData[1]);
138  fprintf(output, "cgcpStatus = %d\n", theData[2]);
139  fprintf(output, "coldGcpId = %d\n", theData[3]);
140  fprintf(output, "cnewgcp = %d\n", theData[4]);
141  fprintf(output, "cgcpSameCounter = %d\n", theData[5]);
142  }
143  return true;
144  break;
145  case DihContinueB::ZREMOVE_NODE_FROM_TABLE:
146  fprintf(output, " Remove Node From Table: Node: %d Table: %d\n",
147  theData[1], theData[2]);
148  return true;
149  break;
150  case DihContinueB::ZCOPY_NODE:
151  fprintf(output, " Copy Node: Table: %d\n", theData[1]);
152  return true;
153  break;
154  case DihContinueB::ZTO_START_COPY_FRAG:
155  fprintf(output, " To Start Copy Frag: TakeOverPtr: %d\n", theData[1]);
156  return true;
157  break;
158  case DihContinueB::ZINVALIDATE_NODE_LCP:
159  fprintf(output, " Invalide LCP: NodeId: %d TableId %d\n",
160  theData[1], theData[2]);
161  return true;
162  break;
163  case DihContinueB::ZINITIALISE_RECORDS:
164  fprintf(output, " Initialise Records: tdata0: %d\n", theData[1]);
165  return true;
166  break;
167  case DihContinueB::ZSTART_PERMREQ_AGAIN:
168  fprintf(output, " START_PERMREQ again for node: %d\n", theData[1]);
169  return true;
170  break;
171  case DihContinueB::SwitchReplica:
172  fprintf(output, " NodeId = %d TableId = %d FragNo = %d\n",
173  theData[1], theData[2], theData[3]);
174  return true;
175  break;
176  case DihContinueB::ZSEND_START_TO:
177  fprintf(output, " Send Start Take Over: TakeOverPtr: %d, startNode: %d, toNode: %d\n",
178  theData[1], theData[2], theData[3]);
179  return true;
180  break;
181  case DihContinueB::ZSEND_UPDATE_TO:
182  fprintf(output, " Send Update Take Over: TakeOverPtr: %d, startNode: %d, toNode: %d\n",
183  theData[1], theData[2], theData[3]);
184  return true;
185  break;
186  case DihContinueB::ZSEND_ADD_FRAG:
187  fprintf(output, " Send Add Fragment: TakeOverPtr: %d, startNode: %d, toNode: %d\n",
188  theData[1], theData[2], theData[3]);
189  return true;
190  break;
191  case DihContinueB::WAIT_DROP_TAB_WRITING_TO_FILE:
192  fprintf(output, " Wait drop tab writing to file TableId: %d\n", theData[1]);
193  return true;
194  case DihContinueB::ZLCP_TRY_LOCK:
195  fprintf(output, " Lcp trylock: attempt %u\n",
196  theData[1]);
197  break;
198  case DihContinueB::ZDELAY_RELEASE_FRAGMENT_INFO_MUTEX:
199  fprintf(output, " Delay release fragment-info mutex (handle: 0x%x)",
200  theData[1]);
201  break;
202  default:
203  fprintf(output, " Default system error lab...\n");
204  break;
205  }//switch
206  return false;
207 }