OmniSciDB
a5dc49c757
|
#include <MigrationMgr.h>
Static Public Member Functions | |
static void | migrateDateInDaysMetadata (const Catalog_Namespace::TableDescriptorMapById &table_descriptors_by_id, const int database_id, Catalog_Namespace::Catalog *cat, SqliteConnector &sqlite) |
static bool | dropRenderGroupColumns (const Catalog_Namespace::TableDescriptorMapById &table_descriptors_by_id, Catalog_Namespace::Catalog *cat) |
static void | executeRebrandMigration (const std::string &base_path) |
static void | takeMigrationLock (const std::string &base_path) |
static void | relaxMigrationLock () |
static bool | migrationEnabled () |
static void | destroy () |
Static Private Attributes | |
static std::unique_ptr < heavyai::DistributedSharedMutex > | migration_mutex_ |
static bool | migration_enabled_ {false} |
Definition at line 31 of file MigrationMgr.h.
|
inlinestatic |
Definition at line 49 of file MigrationMgr.h.
References migration_mutex_.
Referenced by Catalog_Namespace::SysCatalog::destroy().
|
static |
Definition at line 206 of file MigrationMgr.cpp.
References cat(), CHECK, Data_Namespace::DISK_LEVEL, logger::ERROR, logger::INFO, kINT, kMULTIPOLYGON, kPOLYGON, LOG, table_is_temporary(), and to_string().
Referenced by Catalog_Namespace::Catalog::checkDropRenderGroupColumnsMigration().
|
static |
Definition at line 467 of file MigrationMgr.cpp.
References shared::kCatalogDirectoryName, shared::kDataDirectoryName, shared::kDefaultExportDirName, shared::kDefaultImportDirName, shared::kDefaultKeyFileName, shared::kDefaultKeyStoreDirName, shared::kDefaultLicenseFileName, shared::kDefaultLogDirName, shared::kSystemCatalogName, migrations::anonymous_namespace{MigrationMgr.cpp}::rename_and_symlink_file(), and migrations::anonymous_namespace{MigrationMgr.cpp}::rename_and_symlink_path().
Referenced by CommandLineOptions::parse_command_line().
|
static |
Definition at line 91 of file MigrationMgr.cpp.
References cat(), logger::ERROR, SqliteConnector::getData(), Executor::getExecutor(), SqliteConnector::getNumRows(), logger::INFO, kDATE, kENCODING_DATE_IN_DAYS, LOG, MAPD_VERSION, SqliteConnector::query(), SqliteConnector::query_with_text_params(), TableOptimizer::recomputeMetadata(), to_string(), and Executor::UNITARY_EXECUTOR_ID.
Referenced by Catalog_Namespace::Catalog::checkDateInDaysColumnMigration().
|
inlinestatic |
Definition at line 47 of file MigrationMgr.h.
References migration_enabled_.
Referenced by Catalog_Namespace::SysCatalog::init(), and CommandLineOptions::parse_command_line().
|
static |
Definition at line 76 of file MigrationMgr.cpp.
References g_multi_instance, migration_enabled_, and migration_mutex_.
Referenced by Catalog_Namespace::SysCatalog::init().
|
static |
Definition at line 39 of file MigrationMgr.cpp.
References g_multi_instance, shared::kLockfilesDirectoryName, migration_enabled_, and migration_mutex_.
Referenced by Catalog_Namespace::SysCatalog::init(), and CommandLineOptions::parse_command_line().
|
inlinestaticprivate |
Definition at line 58 of file MigrationMgr.h.
Referenced by migrationEnabled(), relaxMigrationLock(), and takeMigrationLock().
|
inlinestaticprivate |
Definition at line 57 of file MigrationMgr.h.
Referenced by destroy(), relaxMigrationLock(), and takeMigrationLock().