Commit a6a69183 authored by David COME's avatar David COME
Browse files

Added a comment in the writing tasks' loops about checkErrors

parent c2f47a3c
......@@ -57,8 +57,10 @@ bool DiskWriteTask::execute(RecallReportPacker& reporter,log::LogContext& lc) {
lc.log(LOG_DEBUG, "File transfer canceled");
return true;
}
//will throw (thus exiting the loop) if something is wrong
checkErrors(mb,blockId,lc);
//----------------------------end deal with errors-----------------------
mb->m_payload.write(ourFile);
checksum = mb->m_payload.adler32(checksum);
blockId++;
......
......@@ -92,6 +92,7 @@ namespace daemon {
localStats.waitDataTime += timer.secs(utils::Timer::resetCounter);
AutoReleaseBlock<MigrationMemoryManager> releaser(mb,m_memManager);
//will throw (thus exiting the loop) if something is wrong
checkErrors(mb,blockId,lc);
ckSum = mb->m_payload.adler32(ckSum);
......
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