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
a6a69183
Commit
a6a69183
authored
Jul 15, 2014
by
David COME
Browse files
Added a comment in the writing tasks' loops about checkErrors
parent
c2f47a3c
Changes
2
Hide whitespace changes
Inline
Side-by-side
castor/tape/tapeserver/daemon/DiskWriteTask.cpp
View file @
a6a69183
...
...
@@ -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
++
;
...
...
castor/tape/tapeserver/daemon/TapeWriteTask.cpp
View file @
a6a69183
...
...
@@ -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
);
...
...
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