#include "Restore.hpp"#include <NdbTCP.h>#include <NdbMem.h>#include <OutputStream.hpp>#include <Bitmask.hpp>#include <AttributeHeader.hpp>#include <trigger_definitions.h>#include <SimpleProperties.hpp>#include <signaldata/DictTabInfo.hpp>#include <ndb_limits.h>#include <NdbAutoPtr.hpp>#include "../../../../sql/ha_ndbcluster_tables.h"#include <NDBT.hpp>Include dependency graph for Restore.cpp:

Go to the source code of this file.
Functions | |
| Uint16 | Twiddle16 (Uint16 in) |
| Uint32 | Twiddle32 (Uint32 in) |
| Uint64 | Twiddle64 (Uint64 in) |
| FilteredNdbOut err * | new (stderr), 0, 0 |
| NdbOut & | operator<< (NdbOut &ndbout, const AttributeS &attr) |
| NdbOut & | operator<< (NdbOut &ndbout, const TupleS &tuple) |
| NdbOut & | operator<< (NdbOut &ndbout, const LogEntry &logE) |
| NdbOut & | operator<< (NdbOut &ndbout, const TableS &table) |
Variables | |
| const Uint32 | magicByteOrder = 0x12345678 |
| const Uint32 | swappedMagicByteOrder = 0x78563412 |
| FilteredNdbOut debug * new | ( | stderr | ) |
Referenced by create_tmp_table(), Dbtc::initRecords(), mysql_create_or_drop_trigger(), mysql_test_select(), JOIN::rollup_init(), JOIN::rollup_make_fields(), and tz_load_from_open_tables().
Here is the caller graph for this function:

| NdbOut& operator<< | ( | NdbOut & | ndbout, | |
| const TableS & | table | |||
| ) |
Definition at line 1210 of file Restore.cpp.
01210 { 01211 01212 ndbout << (* (NDBT_Table*)table.m_dictTable) << endl; 01213 return ndbout; 01214 }
| NdbOut& operator<< | ( | NdbOut & | ndbout, | |
| const LogEntry & | logE | |||
| ) |
Definition at line 1179 of file Restore.cpp.
01180 { 01181 switch(logE.m_type) 01182 { 01183 case LogEntry::LE_INSERT: 01184 ndbout << "INSERT " << logE.m_table->getTableName() << " "; 01185 break; 01186 case LogEntry::LE_DELETE: 01187 ndbout << "DELETE " << logE.m_table->getTableName() << " "; 01188 break; 01189 case LogEntry::LE_UPDATE: 01190 ndbout << "UPDATE " << logE.m_table->getTableName() << " "; 01191 break; 01192 default: 01193 ndbout << "Unknown log entry type (not insert, delete or update)" ; 01194 } 01195 01196 for (Uint32 i= 0; i < logE.size();i++) 01197 { 01198 const AttributeS * attr = logE[i]; 01199 ndbout << attr->Desc->m_column->getName() << "="; 01200 ndbout << (* attr); 01201 if (i < (logE.size() - 1)) 01202 ndbout << ", "; 01203 } 01204 return ndbout; 01205 }
| NdbOut& operator<< | ( | NdbOut & | ndbout, | |
| const TupleS & | tuple | |||
| ) |
Definition at line 1160 of file Restore.cpp.
01161 { 01162 ndbout << tuple.getTable()->getTableName() << "; "; 01163 for (int i = 0; i < tuple.getNoOfAttributes(); i++) 01164 { 01165 AttributeData * attr_data = tuple.getData(i); 01166 const AttributeDesc * attr_desc = tuple.getDesc(i); 01167 const AttributeS attr = {attr_desc, *attr_data}; 01168 debug << i << " " << attr_desc->m_column->getName(); 01169 ndbout << attr; 01170 01171 if (i != (tuple.getNoOfAttributes() - 1)) 01172 ndbout << delimiter << " "; 01173 } // for 01174 return ndbout; 01175 }
| NdbOut& operator<< | ( | NdbOut & | ndbout, | |
| const AttributeS & | attr | |||
| ) |
Definition at line 1140 of file Restore.cpp.
References AttributeS::Data, data, AttributeS::Desc, AttributeDesc::m_column, NdbRecAttr::receive_data(), and NdbRecAttr::setup().
01140 { 01141 const AttributeData & data = attr.Data; 01142 const AttributeDesc & desc = *(attr.Desc); 01143 01144 if (data.null) 01145 { 01146 ndbout << "<NULL>"; 01147 return ndbout; 01148 } 01149 01150 NdbRecAttr tmprec(0); 01151 tmprec.setup(desc.m_column, (char *)data.void_value); 01152 tmprec.receive_data((Uint32*)data.void_value, data.size); 01153 ndbout << tmprec; 01154 01155 return ndbout; 01156 }
Here is the call graph for this function:

Definition at line 966 of file Restore.cpp.
Referenced by BackupFile::Twiddle().
00967 { 00968 Uint16 retVal = 0; 00969 00970 retVal = ((in & 0xFF00) >> 8) | 00971 ((in & 0x00FF) << 8); 00972 00973 return(retVal); 00974 } // Twiddle16
Here is the caller graph for this function:

Definition at line 976 of file Restore.cpp.
Referenced by RestoreLogIterator::getNextLogEntry(), and BackupFile::Twiddle().
00977 { 00978 Uint32 retVal = 0; 00979 00980 retVal = ((in & 0x000000FF) << 24) | 00981 ((in & 0x0000FF00) << 8) | 00982 ((in & 0x00FF0000) >> 8) | 00983 ((in & 0xFF000000) >> 24); 00984 00985 return(retVal); 00986 } // Twiddle32
Here is the caller graph for this function:

Definition at line 988 of file Restore.cpp.
Referenced by BackupFile::Twiddle().
00989 { 00990 Uint64 retVal = 0; 00991 00992 retVal = 00993 ((in & (Uint64)0x00000000000000FFLL) << 56) | 00994 ((in & (Uint64)0x000000000000FF00LL) << 40) | 00995 ((in & (Uint64)0x0000000000FF0000LL) << 24) | 00996 ((in & (Uint64)0x00000000FF000000LL) << 8) | 00997 ((in & (Uint64)0x000000FF00000000LL) >> 8) | 00998 ((in & (Uint64)0x0000FF0000000000LL) >> 24) | 00999 ((in & (Uint64)0x00FF000000000000LL) >> 40) | 01000 ((in & (Uint64)0xFF00000000000000LL) >> 56); 01001 01002 return(retVal); 01003 } // Twiddle64
Here is the caller graph for this function:

| const Uint32 magicByteOrder = 0x12345678 |
Definition at line 77 of file Restore.cpp.
| const Uint32 swappedMagicByteOrder = 0x78563412 |
Definition at line 78 of file Restore.cpp.
1.4.7

