OmniSciDB  2e3a973ef4
TableArchiver.cpp File Reference
#include "TableArchiver/TableArchiver.h"
#include <algorithm>
#include <boost/filesystem.hpp>
#include <boost/process.hpp>
#include <boost/range/combine.hpp>
#include <cerrno>
#include <cstdio>
#include <cstring>
#include <exception>
#include <list>
#include <memory>
#include <regex>
#include <set>
#include <sstream>
#include <system_error>
#include "DataMgr/FileMgr/GlobalFileMgr.h"
#include "LockMgr/LockMgr.h"
#include "Logger/Logger.h"
#include "Parser/ParseDDL.h"
#include "Shared/File.h"
#include "Shared/StringTransform.h"
#include "Shared/ThreadController.h"
#include "Shared/measure.h"
#include "Shared/thread_count.h"
+ Include dependency graph for TableArchiver.cpp:

Go to the source code of this file.

Classes

struct  std::tuple_size< boost::tuples::cons< T, U > >
 
struct  std::tuple_element< I, boost::tuples::cons< T, U > >
 

Namespaces

 std
 
 anonymous_namespace{TableArchiver.cpp}
 

Functions

std::string anonymous_namespace{TableArchiver.cpp}::abs_path (const File_Namespace::GlobalFileMgr *global_file_mgr)
 
std::string anonymous_namespace{TableArchiver.cpp}::run (const std::string &cmd, const std::string &chdir="")
 
std::string anonymous_namespace{TableArchiver.cpp}::simple_file_cat (const std::string &archive_path, const std::string &file_name, const std::string &compression)
 
std::string anonymous_namespace{TableArchiver.cpp}::get_table_schema (const std::string &archive_path, const std::string &table, const std::string &compression)
 
void anonymous_namespace{TableArchiver.cpp}::adjust_altered_table_files (const std::string &temp_data_dir, const std::unordered_map< int, int > &column_ids_map)
 
void anonymous_namespace{TableArchiver.cpp}::rename_table_directories (const File_Namespace::GlobalFileMgr *global_file_mgr, const std::string &temp_data_dir, const std::vector< std::string > &target_paths, const std::string &name_prefix)
 

Variables

bool g_cluster
 
bool g_test_rollback_dump_restore {false}
 
static constexpr char const * table_schema_filename = "_table.sql"
 
static constexpr char const * table_oldinfo_filename = "_table.oldinfo"
 
static constexpr char const * table_epoch_filename = "_table.epoch"
 
auto anonymous_namespace{TableArchiver.cpp}::simple_file_closer = [](FILE* f) { std::fclose(f); }
 

Variable Documentation

◆ g_cluster

◆ g_test_rollback_dump_restore

bool g_test_rollback_dump_restore {false}

Definition at line 45 of file TableArchiver.cpp.

Referenced by TableArchiver::restoreTable().

◆ table_epoch_filename

constexpr char const* table_epoch_filename = "_table.epoch"
static

Definition at line 49 of file TableArchiver.cpp.

Referenced by TableArchiver::dumpTable(), and TableArchiver::restoreTable().

◆ table_oldinfo_filename

constexpr char const* table_oldinfo_filename = "_table.oldinfo"
static

Definition at line 48 of file TableArchiver.cpp.

Referenced by TableArchiver::dumpTable(), and TableArchiver::restoreTable().

◆ table_schema_filename

constexpr char const* table_schema_filename = "_table.sql"
static