Skip to content
Snippets Groups Projects
Commit bde36311 authored by David COME's avatar David COME
Browse files

Added a comment in the writing tasks' loops about checkErrors

parent 8bcf4e46
Branches
Tags
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment