20 #include <signaldata/BackupSignalData.hpp>
23 printBACKUP_REQ(FILE * output,
const Uint32 * theData, Uint32 len, Uint16 bno){
25 fprintf(output,
" senderData: %d DataLength: %d flags: %d\n",
33 printBACKUP_DATA(FILE * output,
const Uint32 * theData, Uint32 len, Uint16 bno){
35 if(sig->requestType == BackupData::ClientToMaster){
36 fprintf(output,
" ClientToMaster: senderData: %d backupId: %d\n",
37 sig->senderData, sig->backupId);
38 }
else if(sig->requestType == BackupData::MasterToSlave){
39 fprintf(output,
" MasterToSlave: backupPtr: %d backupId: %d\n",
40 sig->backupPtr, sig->backupId);
46 printBACKUP_REF(FILE * output,
const Uint32 * theData, Uint32 len, Uint16 bno){
49 fprintf(output,
" senderData: %d errorCode: %d masterRef: %d\n",
57 printBACKUP_CONF(FILE * output,
const Uint32 * theData, Uint32 len, Uint16 bno){
59 fprintf(output,
" senderData: %d backupId: %d\n",
66 printBACKUP_ABORT_REP(FILE * out,
const Uint32 * data, Uint32 len, Uint16 bno){
68 fprintf(out,
" senderData: %d backupId: %d reason: %d\n",
76 printBACKUP_COMPLETE_REP(FILE * out,
const Uint32 * data, Uint32 len, Uint16 b){
78 fprintf(out,
" senderData: %d backupId: %d records: %llu bytes: %llu\n",
81 sig->noOfRecordsLow + (((Uint64)sig->noOfRecordsHigh) << 32),
82 sig->noOfBytesLow + (((Uint64)sig->noOfBytesHigh) << 32));
87 printBACKUP_NF_COMPLETE_REP(FILE*,
const Uint32*, Uint32, Uint16){
92 printABORT_BACKUP_ORD(FILE * out,
const Uint32 * data, Uint32 len, Uint16 b){
95 AbortBackupOrd::RequestType rt =(AbortBackupOrd::RequestType)sig->requestType;
97 case AbortBackupOrd::ClientAbort:
98 fprintf(out,
" ClientAbort: senderData: %d backupId: %d\n",
99 sig->senderData, sig->backupId);
102 case AbortBackupOrd::BackupComplete:
103 fprintf(out,
" BackupComplete: backupPtr: %d backupId: %d\n",
104 sig->backupPtr, sig->backupId);
106 case AbortBackupOrd::BackupFailure:
107 fprintf(out,
" BackupFailure: backupPtr: %d backupId: %d\n",
108 sig->backupPtr, sig->backupId);
110 case AbortBackupOrd::LogBufferFull:
111 fprintf(out,
" LogBufferFull: backupPtr: %d backupId: %d\n",
112 sig->backupPtr, sig->backupId);
115 case AbortBackupOrd::FileOrScanError:
116 fprintf(out,
" FileOrScanError: backupPtr: %d backupId: %d\n",
117 sig->backupPtr, sig->backupId);
120 case AbortBackupOrd::BackupFailureDueToNodeFail:
121 fprintf(out,
" BackupFailureDueToNodeFail: backupPtr: %d backupId: %d\n",
122 sig->backupPtr, sig->backupId);
125 case AbortBackupOrd::OkToClean:
126 fprintf(out,
" OkToClean: backupPtr: %d backupId: %d\n",
127 sig->backupPtr, sig->backupId);
130 case AbortBackupOrd::AbortScan:
131 case AbortBackupOrd::IncompatibleVersions: