1
/* Copyright (C) 2003 MySQL AB
3
This program is free software; you can redistribute it and/or modify
4
it under the terms of the GNU General Public License as published by
5
the Free Software Foundation; version 2 of the License.
7
This program is distributed in the hope that it will be useful,
8
but WITHOUT ANY WARRANTY; without even the implied warranty of
9
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
GNU General Public License for more details.
12
You should have received a copy of the GNU General Public License
13
along with this program; if not, write to the Free Software
14
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
17
#include <signaldata/BackupSignalData.hpp>
20
printBACKUP_REQ(FILE * output, const Uint32 * theData, Uint32 len, Uint16 bno){
21
BackupReq* sig = (BackupReq*)theData;
22
fprintf(output, " senderData: %d DataLength: %d flags: %d\n",
30
printBACKUP_DATA(FILE * output, const Uint32 * theData, Uint32 len, Uint16 bno){
31
BackupData * sig = (BackupData*)theData;
32
if(sig->requestType == BackupData::ClientToMaster){
33
fprintf(output, " ClientToMaster: senderData: %d backupId: %d\n",
34
sig->senderData, sig->backupId);
35
} else if(sig->requestType == BackupData::MasterToSlave){
36
fprintf(output, " MasterToSlave: backupPtr: %d backupId: %d\n",
37
sig->backupPtr, sig->backupId);
43
printBACKUP_REF(FILE * output, const Uint32 * theData, Uint32 len, Uint16 bno){
45
BackupRef* sig = (BackupRef*)theData;
46
fprintf(output, " senderData: %d errorCode: %d masterRef: %d\n",
54
printBACKUP_CONF(FILE * output, const Uint32 * theData, Uint32 len, Uint16 bno){
55
BackupConf* sig = (BackupConf*)theData;
56
fprintf(output, " senderData: %d backupId: %d\n",
63
printBACKUP_ABORT_REP(FILE * out, const Uint32 * data, Uint32 len, Uint16 bno){
64
BackupAbortRep* sig = (BackupAbortRep*)data;
65
fprintf(out, " senderData: %d backupId: %d reason: %d\n",
73
printBACKUP_COMPLETE_REP(FILE * out, const Uint32 * data, Uint32 len, Uint16 b){
74
BackupCompleteRep* sig = (BackupCompleteRep*)data;
75
fprintf(out, " senderData: %d backupId: %d records: %llu bytes: %llu\n",
78
sig->noOfRecordsLow + (((Uint64)sig->noOfRecordsHigh) << 32),
79
sig->noOfBytesLow + (((Uint64)sig->noOfBytesHigh) << 32));
84
printBACKUP_NF_COMPLETE_REP(FILE*, const Uint32*, Uint32, Uint16){
89
printABORT_BACKUP_ORD(FILE * out, const Uint32 * data, Uint32 len, Uint16 b){
90
AbortBackupOrd* sig = (AbortBackupOrd*)data;
92
AbortBackupOrd::RequestType rt =(AbortBackupOrd::RequestType)sig->requestType;
94
case AbortBackupOrd::ClientAbort:
95
fprintf(out, " ClientAbort: senderData: %d backupId: %d\n",
96
sig->senderData, sig->backupId);
99
case AbortBackupOrd::BackupComplete:
100
fprintf(out, " BackupComplete: backupPtr: %d backupId: %d\n",
101
sig->backupPtr, sig->backupId);
103
case AbortBackupOrd::BackupFailure:
104
fprintf(out, " BackupFailure: backupPtr: %d backupId: %d\n",
105
sig->backupPtr, sig->backupId);
107
case AbortBackupOrd::LogBufferFull:
108
fprintf(out, " LogBufferFull: backupPtr: %d backupId: %d\n",
109
sig->backupPtr, sig->backupId);
112
case AbortBackupOrd::FileOrScanError:
113
fprintf(out, " FileOrScanError: backupPtr: %d backupId: %d\n",
114
sig->backupPtr, sig->backupId);
117
case AbortBackupOrd::BackupFailureDueToNodeFail:
118
fprintf(out, " BackupFailureDueToNodeFail: backupPtr: %d backupId: %d\n",
119
sig->backupPtr, sig->backupId);
122
case AbortBackupOrd::OkToClean:
123
fprintf(out, " OkToClean: backupPtr: %d backupId: %d\n",
124
sig->backupPtr, sig->backupId);
127
case AbortBackupOrd::AbortScan:
128
case AbortBackupOrd::IncompatibleVersions: