Skip to content
GitLab
Menu
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
454cae78
Commit
454cae78
authored
Jul 16, 2014
by
David COME
Browse files
temporarily disable the report of the explicit error code to the client
parent
193f18e5
Changes
3
Hide whitespace changes
Inline
Side-by-side
castor/tape/tapeserver/daemon/DiskWriteTask.cpp
View file @
454cae78
...
...
@@ -143,14 +143,16 @@ void DiskWriteTask::releaseAllBlock(){
int
errCode
;
if
(
mb
->
isFailed
()){
errorMsg
=
mb
->
errorMsg
();
errCode
=
mb
->
errorCode
();
//disabled temporarily (see comment in MemBlock)
//errCode=mb->errorCode();
}
else
{
errorMsg
=
"Mistmatch between expected and received filed or blockid"
;
errCode
=
SEINTERNAL
;
}
lc
.
log
(
LOG_ERR
,
errorMsg
);
throw
castor
::
exception
::
Exception
(
errCode
,
errorMsg
);
throw
castor
::
exception
::
Exception
(
errorMsg
);
}
}
...
...
castor/tape/tapeserver/daemon/MemBlock.hpp
View file @
454cae78
...
...
@@ -96,12 +96,14 @@ public:
throw
castor
::
exception
::
Exception
(
"Error Context is not set ="
" no error message to give"
);
}
/**
* Get the error code from the context,
* Throw an exception if there is no context
* @return
*/
/* Out of the process, waiting to check if it is a good idea or not
* send the error code
int errorCode() const {
if(m_context.get()) {
return m_context->m_errorCode;
...
...
@@ -109,7 +111,7 @@ public:
throw castor::exception::Exception("Error Context is not set ="
" no error code to give");
}
}
*/
/**
* Return true if the block has been marked as failed
...
...
castor/tape/tapeserver/daemon/TapeWriteTask.cpp
View file @
454cae78
...
...
@@ -175,14 +175,15 @@ namespace daemon {
int
errCode
;
if
(
mb
->
isFailed
()){
errorMsg
=
mb
->
errorMsg
();
errCode
=
mb
->
errorCode
();
//disabled temporarily (see comment in MemBlock)
//errCode=mb->errorCode();
}
else
{
errorMsg
=
"Mistmatch between expected and received filed or blockid"
;
errCode
=
SEINTERNAL
;
}
lc
.
log
(
LOG_ERR
,
errorMsg
);
throw
castor
::
exception
::
Exception
(
errCode
,
errorMsg
);
throw
castor
::
exception
::
Exception
(
errorMsg
);
}
}
//------------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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