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
70483454
Commit
70483454
authored
Jul 09, 2014
by
Steven Murray
Browse files
Fixed DriveCatalogue::findDrive() throwing an exception when a drive had no pid
parent
b13a81ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
castor/tape/tapeserver/daemon/DriveCatalogue.cpp
View file @
70483454
...
...
@@ -305,8 +305,12 @@ castor::tape::tapeserver::daemon::DriveCatalogueEntry
for
(
DriveMap
::
iterator
i
=
m_drives
.
begin
();
i
!=
m_drives
.
end
();
i
++
)
{
DriveCatalogueEntry
*
drive
=
i
->
second
;
if
(
sessionPid
==
drive
->
getSessionPid
())
{
return
drive
;
try
{
if
(
sessionPid
==
drive
->
getSessionPid
())
{
return
drive
;
}
}
catch
(...)
{
// Ignore any exceptions thrown by getSessionPid()
}
}
...
...
Write
Preview
Supports
Markdown
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