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
bb07675e
Commit
bb07675e
authored
7 years ago
by
Michael Davis
Browse files
Options
Downloads
Patches
Plain Diff
[cta-frontend] Removes hard-coding of client username in debug mode
parent
b5c75d30
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmdline/CtaAdminCmd.cpp
+5
-7
5 additions, 7 deletions
cmdline/CtaAdminCmd.cpp
xroot_ssi_pb/XrdSsiPbService.hpp
+4
-2
4 additions, 2 deletions
xroot_ssi_pb/XrdSsiPbService.hpp
with
9 additions
and
9 deletions
cmdline/CtaAdminCmd.cpp
+
5
−
7
View file @
bb07675e
...
...
@@ -290,17 +290,15 @@ void CtaAdminCmd::throwUsage(const std::string &error_txt) const
{
// Command has been set: show command-specific help
help
<<
m_execname
<<
' '
;
// Reverse lookup of subcommand
// Reverse lookup of long command name
std
::
string
longcmd
;
for
(
auto
map_it
=
cmdLookup
.
begin
();
map_it
!=
cmdLookup
.
end
();
++
map_it
)
{
if
(
admincmd
==
map_it
->
second
)
{
help
<<
map_it
->
first
<<
' '
;
break
;
if
(
admincmd
==
map_it
->
second
&&
map_it
->
first
.
length
()
>
longcmd
.
length
())
{
longcmd
=
map_it
->
first
;
}
}
help
<<
cmdHelp
.
at
(
admincmd
).
help
();
help
<<
m_execname
<<
' '
<<
longcmd
<<
cmdHelp
.
at
(
admincmd
).
help
();
}
throw
std
::
runtime_error
(
help
.
str
());
...
...
This diff is collapsed.
Click to expand it.
xroot_ssi_pb/XrdSsiPbService.hpp
+
4
−
2
View file @
bb07675e
...
...
@@ -87,8 +87,6 @@ public:
<<
(
resource
.
rOpts
&
XrdSsiResource
::
Reusable
?
"Resuable "
:
""
)
<<
(
resource
.
rOpts
&
XrdSsiResource
::
Discard
?
"Discard"
:
""
)
<<
std
::
endl
;
resource
.
client
->
name
=
"ctadev"
;
#endif
if
(
resource
.
client
==
nullptr
||
resource
.
client
->
name
==
nullptr
)
{
...
...
@@ -97,6 +95,10 @@ public:
return
false
;
}
#ifdef XRDSSI_DEBUG
std
::
cerr
<<
"[DEBUG] Resource client name: "
<<
resource
.
client
->
name
<<
std
::
endl
;
#endif
return
true
;
}
...
...
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