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
b513a43f
Commit
b513a43f
authored
6 years ago
by
Michael Davis
Browse files
Options
Downloads
Patches
Plain Diff
[lpa-stream] Lists all tape copies in the retrieve queue
parent
df0f4da3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xroot_plugins/XrdCtaListPendingQueue.hpp
+25
-12
25 additions, 12 deletions
xroot_plugins/XrdCtaListPendingQueue.hpp
with
25 additions
and
12 deletions
xroot_plugins/XrdCtaListPendingQueue.hpp
+
25
−
12
View file @
b513a43f
...
...
@@ -238,17 +238,27 @@ bool ListPendingQueue<OStoreDB::RetrieveQueueItor_t>::pushRecord(XrdSsiPb::OStre
}
}
#endif
Data
record
;
// Response type
record
.
mutable_af_item
()
->
set_type
(
cta
::
admin
::
ArchiveFileItem
::
LISTPENDINGRETRIEVES
);
bool
is_buffer_full
=
false
;
// Tapepool
record
.
mutable_af_item
()
->
set_vid
(
vid
);
// Write one record per tape copy
// Retrieve file
auto
af
=
record
.
mutable_af_item
()
->
mutable_af
();
af
->
set_archive_id
(
job
.
request
.
archiveFileID
);
for
(
auto
tape_it
=
job
.
tapeCopies
.
begin
();
tape_it
!=
job
.
tapeCopies
.
end
();
++
tape_it
)
{
// If we are filtering by vid, skip the ones we are not interested in
if
(
!
vid
.
empty
()
&&
vid
!=
tape_it
->
first
)
continue
;
Data
record
;
// Response type
record
.
mutable_af_item
()
->
set_type
(
cta
::
admin
::
ArchiveFileItem
::
LISTPENDINGRETRIEVES
);
// Tapepool
record
.
mutable_af_item
()
->
set_vid
(
tape_it
->
first
);
// Retrieve file
auto
af
=
record
.
mutable_af_item
()
->
mutable_af
();
af
->
set_archive_id
(
job
.
request
.
archiveFileID
);
#if 0
cta::common::dataStructures::ArchiveFile file = m_catalogue.getArchiveFileById(jt->request.archiveFileID);
currentRow.push_back(std::to_string(static_cast<unsigned long long>((jt->tapeCopies.at(it->first).first))));
...
...
@@ -262,11 +272,14 @@ bool ListPendingQueue<OStoreDB::RetrieveQueueItor_t>::pushRecord(XrdSsiPb::OStre
af->mutable_cs()->set_value(job.request.checksumValue);
af->set_storage_class(job.request.storageClass);
#endif
af
->
mutable_df
()
->
set_owner
(
job
.
request
.
requester
.
name
);
af
->
mutable_df
()
->
set_group
(
job
.
request
.
requester
.
group
);
af
->
mutable_df
()
->
set_path
(
job
.
request
.
diskFileInfo
.
path
);
af
->
mutable_df
()
->
set_owner
(
job
.
request
.
requester
.
name
);
af
->
mutable_df
()
->
set_group
(
job
.
request
.
requester
.
group
);
af
->
mutable_df
()
->
set_path
(
job
.
request
.
diskFileInfo
.
path
);
return
streambuf
->
Push
(
record
);
is_buffer_full
=
streambuf
->
Push
(
record
);
}
return
is_buffer_full
;
}
template
<
>
...
...
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