Adds immediate migration results in progress
This commit is contained in:
2102 files changed
+17482
-15071
No files matched your search
+9
-9
@@ -144,7 +144,7 @@ bool CnrTvcProfileHandler::init()
|
||||
bool status = m_db->select(circuitContainersDb);
|
||||
if (!status)
|
||||
{
|
||||
ERROR_LOG() << "Error reading data from database 'avm.avm_cnr_tvc_profile'";
|
||||
ERROR_LOG(m_logger) << "Error reading data from database 'avm.avm_cnr_tvc_profile'";
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -174,7 +174,7 @@ bool CnrTvcProfileHandler::collectAndPublish(const Database::AvmCnrTvcProfile &c
|
||||
bool status = m_db->selectByContainerId(circuitsContentDb, circuitContainerDb.id);
|
||||
if (!status)
|
||||
{
|
||||
ERROR_LOG() << "Error reading data from database 'avm.avm_cnr_tvc_profile_data'";
|
||||
ERROR_LOG(m_logger) << "Error reading data from database 'avm.avm_cnr_tvc_profile_data'";
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -185,7 +185,7 @@ bool CnrTvcProfileHandler::collectAndPublish(const Database::AvmCnrTvcProfile &c
|
||||
{
|
||||
status = m_db->removeAvmCnrTvcProfileData(invalid.id);
|
||||
if (!status)
|
||||
ERROR_LOG() << "Failed to remove from 'avm.avm_cnr_tvc_profile_data' with id " << invalid.id;
|
||||
ERROR_LOG(m_logger) << "Failed to remove from 'avm.avm_cnr_tvc_profile_data' with id " << invalid.id;
|
||||
auto newEnd = std::remove_if(circuitsContentDb.begin(), circuitsContentDb.end(), [&invalid] (const Database::AvmCnrTvcProfileData &circuit) { return circuit.id == invalid.id; });
|
||||
circuitsContentDb.erase(newEnd, circuitsContentDb.end());
|
||||
}
|
||||
@@ -198,7 +198,7 @@ bool CnrTvcProfileHandler::collectAndPublish(const Database::AvmCnrTvcProfile &c
|
||||
status = m_db->removeAvmCnrTvcProfile(circuitContainerDb.id);
|
||||
if (!status)
|
||||
{
|
||||
ERROR_LOG() << "Failed to remove from 'avm.avm_cnr_tvc_profile' with id " << circuitContainerDb.id;
|
||||
ERROR_LOG(m_logger) << "Failed to remove from 'avm.avm_cnr_tvc_profile' with id " << circuitContainerDb.id;
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -231,7 +231,7 @@ void CnrTvcProfileHandler::onModifyCnrTvcProfileRequest(const rti::core::SampleI
|
||||
rep = modifyProfile(request);
|
||||
|
||||
if (rep.error())
|
||||
WARNING_LOG() << rep.str();
|
||||
WARNING_LOG(m_logger) << rep.str();
|
||||
|
||||
m_fts->modifyCnrTvcProfileReply(cookie, rep);
|
||||
}
|
||||
@@ -242,7 +242,7 @@ void CnrTvcProfileHandler::onRemoveCnrTvcProfileRequest(const rti::core::SampleI
|
||||
Core::FunctionReplyObject rep = removeProfile(request);
|
||||
|
||||
if (rep.error())
|
||||
WARNING_LOG() << rep.str();
|
||||
WARNING_LOG(m_logger) << rep.str();
|
||||
|
||||
m_fts->removeCnrTvcProfileReply(cookie, rep);
|
||||
}
|
||||
@@ -361,7 +361,7 @@ void CnrTvcProfileHandler::addProfile(const CnrTvcProfile &profile)
|
||||
|
||||
bool status = m_dts->publish(profile);
|
||||
if (!status)
|
||||
ERROR_LOG() << QStringLiteral("Failed to publish 'CnrTvcProfile' data with id %1 (create)").arg(profile.id());
|
||||
ERROR_LOG(m_logger) << QStringLiteral("Failed to publish 'CnrTvcProfile' data with id %1 (create)").arg(profile.id());
|
||||
}
|
||||
|
||||
void CnrTvcProfileHandler::removeProfile(int64_t id)
|
||||
@@ -375,7 +375,7 @@ void CnrTvcProfileHandler::removeProfile(int64_t id)
|
||||
|
||||
bool status = m_dts->removeCnrTvcProfileByKey(id);
|
||||
if (!status)
|
||||
ERROR_LOG() << QStringLiteral("Failed to publish 'CnrTvcProfile' with id %1 (remove)").arg(id);
|
||||
ERROR_LOG(m_logger) << QStringLiteral("Failed to publish 'CnrTvcProfile' with id %1 (remove)").arg(id);
|
||||
}
|
||||
|
||||
void CnrTvcProfileHandler::updateProfile(const CnrTvcProfile &profile)
|
||||
@@ -393,7 +393,7 @@ void CnrTvcProfileHandler::updateProfile(const CnrTvcProfile &profile)
|
||||
|
||||
bool status = m_dts->publish(profile);
|
||||
if (!status)
|
||||
ERROR_LOG() << QStringLiteral("Failed to publish 'CnrTvcProfile' data with id %1 (modify)").arg(profile.id());
|
||||
ERROR_LOG(m_logger) << QStringLiteral("Failed to publish 'CnrTvcProfile' data with id %1 (modify)").arg(profile.id());
|
||||
}
|
||||
|
||||
void CnrTvcProfileHandler::onCnrConfigChanged(const CnrConfig &cnrConfig)
|
||||
|
||||
Reference in new issue
Block a user