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

In DiskWriteTask, closing the file is now explicit, that way we cant silent...

In DiskWriteTask, closing the file is now explicit, that way we cant silent errors and report erroneous succeses
parent 7536a63e
......@@ -78,7 +78,11 @@ bool DiskWriteTask::execute(RecallReportPacker& reporter,log::LogContext& lc) {
blockId++;
} //end if block non NULL
else {
else {
//close has to be explicit, because it may throw.
//A close is done in WriteFile's destructor, but it may lead to some
//silent data loss
ourFile.close();
break;
}
} //end of while(1)
......
Markdown is supported
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