19 #include "consumer_printer.hpp"
20 extern FilteredNdbOut info;
21 extern bool ga_dont_ignore_systab_0;
23 extern const char *tab_path;
26 BackupPrinter::table(
const TableS & tab)
28 if (m_print || m_print_meta)
32 info <<
"Successfully printed table: ", tab.m_dictTable->getName();
38 BackupPrinter::tuple(
const TupleS & tup, Uint32 fragId)
41 if (m_print || m_print_data)
43 if (m_ndbout.m_out == info.m_out)
46 info << tup.getTable()->getTableName() <<
"; ";
48 const TableS * table = tup.getTable();
49 if ((!ga_dont_ignore_systab_0) && table->isSYSTAB_0())
51 m_ndbout << tup << g_ndbrecord_print_format.lines_terminated_by;
56 BackupPrinter::logEntry(
const LogEntry & logE)
58 if (m_print || m_print_log)
59 m_ndbout << logE << endl;
64 BackupPrinter::endOfLogEntrys()
66 if (m_print || m_print_log)
69 info <<
"Printed " << m_dataCount <<
" tuples and "
70 << m_logCount <<
" log entries"
71 <<
" to stdout." << endl;