Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
8ee5d107
Commit
8ee5d107
authored
Apr 17, 2014
by
David COME
Browse files
Added some coments to DiskReadTask
parent
7c1d9861
Changes
2
Hide whitespace changes
Inline
Side-by-side
castor/tape/tapeserver/daemon/DiskReadTask.hpp
View file @
8ee5d107
...
...
@@ -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
;
};
...
...
castor/tape/tapeserver/daemon/MemBlock.hpp
View file @
8ee5d107
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment