MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LqhFrag.cpp
1 /*
2  Copyright (C) 2003, 2005, 2006, 2008 MySQL AB
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/LqhFrag.hpp>
21 
22 bool
23 printLQH_FRAG_REQ(FILE * output, const Uint32 * theData, Uint32 len, Uint16 recB){
24  LqhFragReq* sig = (LqhFragReq*)theData;
25 
26  fprintf(output, " senderData: %d senderRef: %x",
27  sig->senderData, sig->senderRef);
28  fprintf(output, " tableId: %d fragmentId: %d", sig->tableId, sig->fragmentId);
29  fprintf(output, " localKeyLength: %d maxLoadFactor: %d minLoadFactor: %d\n",
30  sig->localKeyLength, sig->maxLoadFactor, sig->minLoadFactor);
31  fprintf(output, " kValue: %d lh3DistrBits: %d lh3PageBits: %d\n",
32  sig->kValue, sig->lh3DistrBits, sig->lh3PageBits);
33 
34  fprintf(output, " keyLength: %d\n",
35  sig->keyLength);
36 
37  fprintf(output, " maxRowsLow/High: %u/%u minRowsLow/High: %u/%u\n",
38  sig->maxRowsLow, sig->maxRowsHigh, sig->minRowsLow, sig->minRowsHigh);
39  fprintf(output, " nextLCP: %d\n",
40  sig->nextLCP);
41 
42  return true;
43 }
44 bool
45 printLQH_FRAG_CONF(FILE * output, const Uint32 * theData, Uint32 len, Uint16 rec){
46  LqhFragConf* sig = (LqhFragConf*)theData;
47 
48  fprintf(output, " senderData: %d lqhFragPtr: %d\n",
49  sig->senderData, sig->lqhFragPtr);
50  return true;
51 }
52 
53 bool
54 printLQH_FRAG_REF(FILE * output, const Uint32 * theData, Uint32 len, Uint16 rec){
55  LqhFragRef* sig = (LqhFragRef*)theData;
56 
57  fprintf(output, " senderData: %d errorCode: %d\n",
58  sig->senderData, sig->errorCode);
59  return true;
60 }