Commit 0d33113f authored by Eric Cano's avatar Eric Cano
Browse files

Fixed tape log session summary when we reach end of tape: it is a success.

parent 80d2fa4f
...@@ -303,7 +303,8 @@ void MigrationReportPacker::ReportEndofSessionWithErrors::execute(MigrationRepor ...@@ -303,7 +303,8 @@ void MigrationReportPacker::ReportEndofSessionWithErrors::execute(MigrationRepor
reportPacker.m_lc.log(LOG_INFO,msg); reportPacker.m_lc.log(LOG_INFO,msg);
} }
if(reportPacker.m_watchdog) { if(reportPacker.m_watchdog) {
reportPacker.m_watchdog->addParameter(log::Param("status","failure")); reportPacker.m_watchdog->addParameter(log::Param("status",
ENOSPC == m_errorCode?"success":"failure"));
// We have a race condition here between the processing of this message by // We have a race condition here between the processing of this message by
// the initial process and the printing of the end-of-session log, triggered // the initial process and the printing of the end-of-session log, triggered
// by the end our process. To delay the latter, we sleep half a second here. // by the end our process. To delay the latter, we sleep half a second here.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment