Commit 8ee5d107 authored by David COME's avatar David COME
Browse files

Added some coments to DiskReadTask

parent 7c1d9861
......@@ -41,9 +41,19 @@ public:
virtual void execute(log::LogContext& lc);
private:
//TW ; tape write
/**
* The task (a TapeWriteTask) that will handle the read blocks
*/
DataConsumer & m_nextTask;
/**
* All we need to know about the file we are migrating
*/
std::auto_ptr<tape::tapegateway::FileToMigrateStruct> m_migratedFile;
/**
* The number of memory block we will need to read the whole file
*/
size_t m_numberOfBlock;
};
......
......@@ -142,7 +142,11 @@ public:
to.write(m_payload + writePosition, m_size - writePosition);
}
}
/**
* Compute adler32 checksum on the current data hold.
* @param previous The previous adler32 checksum from all previous datablock
* @return the updated checksum
*/
unsigned long adler32(unsigned long previous){
return ::adler32(previous,m_payload,m_size);
}
......
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