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
e7f9ce18
Commit
e7f9ce18
authored
8 years ago
by
Steven Murray
Browse files
Options
Downloads
Patches
Plain Diff
MountCmdMain and DismountCmdMain now call ShutdownProtobufLibrary()
parent
c6a0f4f2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tapeserver/castor/mediachanger/DismountCmdMain.cpp
+4
-1
4 additions, 1 deletion
tapeserver/castor/mediachanger/DismountCmdMain.cpp
tapeserver/castor/mediachanger/MountCmdMain.cpp
+4
-1
4 additions, 1 deletion
tapeserver/castor/mediachanger/MountCmdMain.cpp
with
8 additions
and
2 deletions
tapeserver/castor/mediachanger/DismountCmdMain.cpp
+
4
−
1
View file @
e7f9ce18
...
...
@@ -64,7 +64,9 @@ int main(const int argc, char *const *const argv) {
std
::
string
errorMessage
;
try
{
return
exceptionThrowingMain
(
argc
,
argv
);
const
int
rc
=
exceptionThrowingMain
(
argc
,
argv
);
google
::
protobuf
::
ShutdownProtobufLibrary
();
return
rc
;
}
catch
(
castor
::
exception
::
Exception
&
ex
)
{
errorMessage
=
ex
.
getMessage
().
str
();
}
catch
(
std
::
exception
&
se
)
{
...
...
@@ -77,6 +79,7 @@ int main(const int argc, char *const *const argv) {
// and errorMessage has been set accordingly
std
::
cerr
<<
"Aborting: "
<<
errorMessage
<<
std
::
endl
;
google
::
protobuf
::
ShutdownProtobufLibrary
();
return
1
;
}
...
...
This diff is collapsed.
Click to expand it.
tapeserver/castor/mediachanger/MountCmdMain.cpp
+
4
−
1
View file @
e7f9ce18
...
...
@@ -63,7 +63,9 @@ int main(const int argc, char *const *const argv) {
std
::
string
errorMessage
;
try
{
return
exceptionThrowingMain
(
argc
,
argv
);
const
int
rc
=
exceptionThrowingMain
(
argc
,
argv
);
google
::
protobuf
::
ShutdownProtobufLibrary
();
return
rc
;
}
catch
(
castor
::
exception
::
Exception
&
ex
)
{
errorMessage
=
ex
.
getMessage
().
str
();
}
catch
(
std
::
exception
&
se
)
{
...
...
@@ -76,6 +78,7 @@ int main(const int argc, char *const *const argv) {
// and errorMessage has been set accordingly
std
::
cerr
<<
"Aborting: "
<<
errorMessage
<<
std
::
endl
;
google
::
protobuf
::
ShutdownProtobufLibrary
();
return
1
;
}
...
...
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