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
b1c3768d
Commit
b1c3768d
authored
Dec 02, 2014
by
Eric Cano
Browse files
Fixed Info_tapeFilledUp tape log parameter potentially appearing with a count greater that 1.
parent
f0f32b96
Changes
3
Hide whitespace changes
Inline
Side-by-side
castor/tape/tapeserver/daemon/TapeWriteSingleThread.cpp
View file @
b1c3768d
...
...
@@ -256,7 +256,7 @@ void castor::tape::tapeserver::daemon::TapeWriteSingleThread::run() {
throw
0
;
}
// This is indeed the end of the tape. Not an error.
m_watchdog
.
addTo
ErrorCount
(
"Info_tapeFilledUp"
);
m_watchdog
.
set
ErrorCount
(
"Info_tapeFilledUp"
,
1
);
}
catch
(...)
{
// The error is not an ENOSPC, so it is, indeed, an error.
// If we got here with a new error, currentErrorToCount will be non-empty,
...
...
castor/tape/tapeserver/daemon/TapeWriteTask.cpp
View file @
b1c3768d
...
...
@@ -167,7 +167,7 @@ namespace daemon {
throw
0
;
}
// This is indeed the end of the tape. Not an error.
watchdog
.
addTo
ErrorCount
(
"Info_tapeFilledUp"
);
watchdog
.
set
ErrorCount
(
"Info_tapeFilledUp"
,
1
);
}
catch
(...)
{
// The error is not an ENOSPC, so it is, indeed, an error.
// If we got here with a new error, currentErrorToCount will be non-empty,
...
...
castor/tape/tapeserver/daemon/TaskWatchDog.hpp
View file @
b1c3768d
...
...
@@ -320,6 +320,19 @@ protected:
addParameter
(
log
::
Param
(
errorName
,
count
));
}
/**
* Set error count. This is used for once per session events that could
* be detected several times.
*/
void
setErrorCount
(
const
std
::
string
&
errorName
,
uint32_t
value
)
{
{
castor
::
server
::
MutexLocker
locker
(
&
m_mutex
);
m_errorCounts
[
errorName
]
=
value
;
}
// We ship the new value ASAP to the main thread.
addParameter
(
log
::
Param
(
errorName
,
value
));
}
/**
* Start the thread
*/
...
...
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