Adds immediate migration results in progress
This commit is contained in:
2102 files changed
+17482
-15071
No files matched your search
@@ -36,14 +36,14 @@ Initialization::~Initialization()
|
||||
|
||||
bool Initialization::initialize(const std::shared_ptr<DDSConnector::DdsConnector> &ddsConnector, const QSqlDatabase &sqlDb)
|
||||
{
|
||||
INFO_LOG() << "--- Start MarkerManagement Initialization.";
|
||||
INFO_LOG(m_logger) << "--- Start MarkerManagement Initialization.";
|
||||
|
||||
// initialize DDS
|
||||
// for MarkerManagement => exerciseId = partitionId
|
||||
m_ddsHandler = std::make_shared<DdsHandler>(ddsConnector);
|
||||
if (!m_ddsHandler->init())
|
||||
{
|
||||
ERROR_LOG() << "Initialisation DdsHandler failed.";
|
||||
ERROR_LOG(m_logger) << "Initialisation DdsHandler failed.";
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ bool Initialization::initialize(const std::shared_ptr<DDSConnector::DdsConnector
|
||||
m_dbHandler = std::make_shared<DbHandler>();
|
||||
if (!m_dbHandler->init(ddsConnector->getPartitionId(), sqlDb))
|
||||
{
|
||||
ERROR_LOG() << "Initialisation dbHandler failed.";
|
||||
ERROR_LOG(m_logger) << "Initialisation dbHandler failed.";
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ bool Initialization::initialize(const std::shared_ptr<DDSConnector::DdsConnector
|
||||
m_handlerMarker.reset(new HandlerMarker(m_ddsHandler, m_dbHandler->db()));
|
||||
m_handlerSnapshot.reset(new HandlerSnapshot(m_ddsHandler, m_dbHandler->db()));
|
||||
|
||||
INFO_LOG() << "MRK Handler initialized.";
|
||||
INFO_LOG(m_logger) << "MRK Handler initialized.";
|
||||
|
||||
return true;
|
||||
} // end of initialize()
|
||||
@@ -72,16 +72,16 @@ bool Initialization::loadFromDatabase()
|
||||
{
|
||||
if (!m_handlerMarker || !m_handlerMarker->init())
|
||||
{
|
||||
ERROR_LOG() << "Initialisation HandlerMarker failed.";
|
||||
ERROR_LOG(m_logger) << "Initialisation HandlerMarker failed.";
|
||||
return false;
|
||||
}
|
||||
if (!m_handlerSnapshot || !m_handlerSnapshot->init())
|
||||
{
|
||||
ERROR_LOG() << "Initialisation HandlerSnapshot failed.";
|
||||
ERROR_LOG(m_logger) << "Initialisation HandlerSnapshot failed.";
|
||||
return false;
|
||||
}
|
||||
|
||||
INFO_LOG() << "MRK Handler initialized.";
|
||||
INFO_LOG(m_logger) << "MRK Handler initialized.";
|
||||
return true;
|
||||
} // end of loadFromDatabase()
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user