Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
d65bb927
Commit
d65bb927
authored
11 years ago
by
Steven Murray
Browse files
Options
Downloads
Patches
Plain Diff
tapeserverd no handles invalid dgn drive registrations
parent
2128faec
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
castor/tape/tapeserver/daemon/VdqmImpl.cpp
+15
-4
15 additions, 4 deletions
castor/tape/tapeserver/daemon/VdqmImpl.cpp
with
15 additions
and
4 deletions
castor/tape/tapeserver/daemon/VdqmImpl.cpp
+
15
−
4
View file @
d65bb927
...
...
@@ -168,11 +168,22 @@ void castor::tape::tapeserver::daemon::VdqmImpl::readCommitAck(
": expected=0x"
<<
std
::
hex
<<
VDQM_MAGIC
<<
" actual="
<<
ack
.
magic
;
throw
ex
;
}
if
(
VDQM_COMMIT
!=
ack
.
reqType
)
{
if
(
VDQM_COMMIT
==
ack
.
reqType
)
{
// Read a successful VDQM_COMMIT ack
return
;
}
else
if
(
0
<
ack
.
reqType
)
{
// VDQM_COMMIT ack is reporting an error
char
errBuf
[
80
];
sstrerror_r
(
ack
.
reqType
,
errBuf
,
sizeof
(
errBuf
));
castor
::
exception
::
Internal
ex
;
ex
.
getMessage
()
<<
"VDQM_COMMIT ack reported an error: "
<<
errBuf
;
throw
ex
;
}
else
{
// VDQM_COMMIT ack contains an invalid request type
castor
::
exception
::
Internal
ex
;
ex
.
getMessage
()
<<
"Failed to read VDQM_COMMIT ack: Invalid request type"
": expected=0x"
<<
std
::
hex
<<
VDQM_COMMIT
<<
" actual=0x"
<<
ack
.
reqType
;
ex
.
getMessage
()
<<
"VDQM_COMMIT ack contains an invalid request type"
": reqType="
<<
ack
.
reqType
;
throw
ex
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment