~ubuntu-branches/ubuntu/trusty/mysql-5.6/trusty

« back to all changes in this revision

Viewing changes to storage/ndb/src/common/debugger/signaldata/AlterTab.cpp

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-02-12 11:54:27 UTC
  • Revision ID: package-import@ubuntu.com-20140212115427-oq6tfsqxl1wuwehi
Tags: upstream-5.6.15
ImportĀ upstreamĀ versionĀ 5.6.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
   Copyright (C) 2003, 2005-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
#include <signaldata/AlterTab.hpp>
 
20
 
 
21
bool
 
22
printALTER_TAB_REQ(FILE* output, const Uint32* theData, Uint32 len, Uint16)
 
23
{
 
24
  const AlterTabReq* sig = (const AlterTabReq*)theData;
 
25
  fprintf(output, " senderRef: 0x%x", sig->senderRef);
 
26
  fprintf(output, " senderData: %u", sig->senderData);
 
27
  fprintf(output, " requestType: %u", sig->requestType);
 
28
  fprintf(output, "\n");
 
29
  fprintf(output, " tableId: %u", sig->tableId);
 
30
  fprintf(output, " tableVersion: 0x%x", sig->tableVersion);
 
31
  fprintf(output, " newTableVersion: 0x%x", sig->newTableVersion);
 
32
  fprintf(output, " gci: %u", sig->gci);
 
33
  fprintf(output, " changeMask: 0x%x", sig->changeMask);
 
34
  fprintf(output, "\n");
 
35
  fprintf(output, " connectPtr: %u", sig->connectPtr);
 
36
  fprintf(output, " noOfNewAttr: %u", sig->noOfNewAttr);
 
37
  fprintf(output, " newNoOfCharsets: %u", sig->newNoOfCharsets);
 
38
  fprintf(output, " newNoOfKeyAttrs: %u", sig->newNoOfKeyAttrs);
 
39
  fprintf(output, "\n");
 
40
  return true;
 
41
}
 
42
 
 
43
bool
 
44
printALTER_TAB_CONF(FILE* output, const Uint32* theData, Uint32 len, Uint16)
 
45
{
 
46
  const AlterTabConf* sig = (const AlterTabConf*)theData;
 
47
  fprintf(output, " senderRef: 0x%x", sig->senderRef);
 
48
  fprintf(output, " senderData: %u", sig->senderData);
 
49
  fprintf(output, " connectPtr: %u", sig->connectPtr);
 
50
  fprintf(output, "\n");
 
51
  return true;
 
52
}
 
53
 
 
54
bool
 
55
printALTER_TAB_REF(FILE* output, const Uint32* theData, Uint32 len, Uint16)
 
56
{
 
57
  const AlterTabRef* sig = (const AlterTabRef*)theData;
 
58
  fprintf(output, " senderRef: 0x%x", sig->senderRef);
 
59
  fprintf(output, " senderData: %u", sig->senderData);
 
60
  fprintf(output, "\n");
 
61
  fprintf(output, " errorCode: %u", sig->errorCode);
 
62
  fprintf(output, " errorLine: %u", sig-> errorLine);
 
63
  fprintf(output, " errorKey: %u", sig->errorKey);
 
64
  fprintf(output, " errorStatus: %u", sig->errorStatus);
 
65
  fprintf(output, "\n");
 
66
  return true;
 
67
}