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
8e1e7fd2
Commit
8e1e7fd2
authored
8 years ago
by
Eric Cano
Browse files
Options
Downloads
Patches
Plain Diff
Fixed several bugs in EOSReporter. Added support for "null:" report URL.
parent
124523d7
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
disk/DiskReporterFactory.hpp
+1
-1
1 addition, 1 deletion
disk/DiskReporterFactory.hpp
disk/EOSReporter.cpp
+6
-3
6 additions, 3 deletions
disk/EOSReporter.cpp
with
7 additions
and
4 deletions
disk/DiskReporterFactory.hpp
+
1
−
1
View file @
8e1e7fd2
...
...
@@ -36,7 +36,7 @@ private:
// which itself will be translated into (roughly) :
// XrdCl::FileSystem(XrdCl::URL("eoserver.cern.ch")).Query("/eos/wfe/passwd?mgm.pcmd=event&mgm.fid=112&mgm.logid=cta&mgm.event=migrated&mgm.workflow=default&mgm.path=/eos/wfe/passwd&mgm.ruid=0&mgm.rgid=0");
cta
::
utils
::
Regex
m_EosUrlRegex
{
"^eosQuery://([^/]+)(/.*)$"
};
cta
::
utils
::
Regex
m_NullRegex
{
"^$"
};
cta
::
utils
::
Regex
m_NullRegex
{
"^$
|^null:$
"
};
/// This mutex ensures we do not use the regexes in parallel.
cta
::
threading
::
Mutex
m_mutex
;
};
...
...
This diff is collapsed.
Click to expand it.
disk/EOSReporter.cpp
+
6
−
3
View file @
8e1e7fd2
...
...
@@ -22,15 +22,18 @@
namespace
cta
{
namespace
disk
{
EOSReporter
::
EOSReporter
(
const
std
::
string
&
hostURL
,
const
std
::
string
&
queryValue
)
:
m_fs
(
hostURL
)
{}
m_fs
(
hostURL
)
,
m_query
(
queryValue
)
{}
void
EOSReporter
::
reportArchiveFullyComplete
()
{
auto
qcOpaque
=
XrdCl
::
QueryCode
::
OpaqueFile
;
XrdCl
::
Buffer
arg
(
m_query
.
size
());
arg
.
FromString
(
m_query
);
cta
::
exception
::
XrootCl
::
throwOnError
(
m_fs
.
Query
(
qcOpaque
,
arg
,
nullptr
),
XrdCl
::
Buffer
*
resp
=
nullptr
;
XrdCl
::
XRootDStatus
status
=
m_fs
.
Query
(
qcOpaque
,
arg
,
resp
);
delete
(
resp
);
cta
::
exception
::
XrootCl
::
throwOnError
(
status
,
"In EOSReporter::reportArchiveFullyComplete(): failed to XrdCl::FileSystem::Query()"
);
}
}
}}
// namespace cta::disk
\ No newline at end of file
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