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
9f962fc4
Commit
9f962fc4
authored
6 years ago
by
Michael Davis
Browse files
Options
Downloads
Patches
Plain Diff
[lpa-stream] Displays fSeq and blockId
parent
c0bc98bc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cmdline/CtaAdminCmd.cpp
+3
-3
3 additions, 3 deletions
cmdline/CtaAdminCmd.cpp
xroot_plugins/XrdCtaListPendingQueue.hpp
+7
-25
7 additions, 25 deletions
xroot_plugins/XrdCtaListPendingQueue.hpp
xrootd-ssi-protobuf-interface
+1
-1
1 addition, 1 deletion
xrootd-ssi-protobuf-interface
with
11 additions
and
29 deletions
cmdline/CtaAdminCmd.cpp
+
3
−
3
View file @
9f962fc4
...
...
@@ -473,11 +473,11 @@ void CtaAdminCmd::printLprHeader()
void
CtaAdminCmd
::
printLprItem
(
const
cta
::
admin
::
ArchiveFileItem
&
af_item
)
{
std
::
cout
<<
std
::
setfill
(
' '
)
<<
std
::
setw
(
13
)
<<
std
::
right
<<
af_item
.
vid
()
<<
' '
std
::
cout
<<
std
::
setfill
(
' '
)
<<
std
::
setw
(
13
)
<<
std
::
right
<<
af_item
.
tf
().
vid
()
<<
' '
<<
std
::
setfill
(
' '
)
<<
std
::
setw
(
7
)
<<
std
::
right
<<
af_item
.
af
().
archive_id
()
<<
' '
<<
std
::
setfill
(
' '
)
<<
std
::
setw
(
7
)
<<
std
::
right
<<
af_item
.
copy_nb
()
<<
' '
<<
std
::
setfill
(
' '
)
<<
std
::
setw
(
7
)
<<
std
::
right
<<
"fseq"
<<
' '
<<
std
::
setfill
(
' '
)
<<
std
::
setw
(
9
)
<<
std
::
right
<<
"
block
id
"
<<
' '
<<
std
::
setfill
(
' '
)
<<
std
::
setw
(
7
)
<<
std
::
right
<<
af_item
.
tf
().
f_seq
()
<<
' '
<<
std
::
setfill
(
' '
)
<<
std
::
setw
(
9
)
<<
std
::
right
<<
af_item
.
tf
().
block
_
id
()
<<
' '
<<
std
::
setfill
(
' '
)
<<
std
::
setw
(
12
)
<<
std
::
right
<<
af_item
.
af
().
size
()
<<
' '
<<
std
::
setfill
(
' '
)
<<
std
::
setw
(
8
)
<<
std
::
right
<<
af_item
.
af
().
df
().
owner
()
<<
' '
<<
std
::
setfill
(
' '
)
<<
std
::
setw
(
8
)
<<
std
::
right
<<
af_item
.
af
().
df
().
group
()
<<
' '
...
...
This diff is collapsed.
Click to expand it.
xroot_plugins/XrdCtaListPendingQueue.hpp
+
7
−
25
View file @
9f962fc4
...
...
@@ -218,7 +218,6 @@ template<>
bool
ListPendingQueue
<
OStoreDB
::
RetrieveQueueItor_t
>::
pushRecord
(
XrdSsiPb
::
OStreamBuffer
<
Data
>
*
streambuf
,
const
std
::
string
&
vid
,
const
common
::
dataStructures
::
RetrieveJob
&
job
)
{
#if 0
if(vid) {
std::list<cta::common::dataStructures::RetrieveJob> list = m_scheduler.getPendingRetrieveJobs(vid.value(), m_lc);
...
...
@@ -226,17 +225,6 @@ bool ListPendingQueue<OStoreDB::RetrieveQueueItor_t>::pushRecord(XrdSsiPb::OStre
} else {
result = m_scheduler.getPendingRetrieveJobs(m_lc);
}
for(auto it = result.cbegin(); it != result.cend(); it++)
{
for(auto jt = it->second.cbegin(); jt != it->second.cend(); jt++)
{
currentRow.push_back(jt->request.requester.name);
currentRow.push_back(jt->request.requester.group);
currentRow.push_back(jt->request.diskFileInfo.path);
responseTable.push_back(currentRow);
}
}
#endif
bool
is_buffer_full
=
false
;
...
...
@@ -253,33 +241,27 @@ bool ListPendingQueue<OStoreDB::RetrieveQueueItor_t>::pushRecord(XrdSsiPb::OStre
// Response type
record
.
mutable_af_item
()
->
set_type
(
cta
::
admin
::
ArchiveFileItem
::
LISTPENDINGRETRIEVES
);
// VID
record
.
mutable_af_item
()
->
set_vid
(
tape_it
->
first
);
// Copy number
record
.
mutable_af_item
()
->
set_copy_nb
(
tape_it
->
second
.
first
);
//
Retrie
ve file
//
Archi
ve file
auto
af
=
record
.
mutable_af_item
()
->
mutable_af
();
af
->
set_archive_id
(
job
.
request
.
archiveFileID
);
af
->
set_size
(
tape_it
->
second
.
second
.
compressedSize
);
#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))));
currentRow.push_back(std::to_string(static_cast<unsigned long long>((jt->tapeCopies.at(it->first).second.fSeq))));
currentRow.push_back(std::to_string(static_cast<unsigned long long>((jt->tapeCopies.at(it->first).second.blockId))));
currentRow.push_back(std::to_string(static_cast<unsigned long long>(file.fileSize)));
af->set_disk_instance(job.instanceName);
af->set_disk_id(job.request.diskFileID);
af->set_size(job.request.fileSize);
af->mutable_cs()->set_type(job.request.checksumType);
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
);
// Tape file
auto
tf
=
record
.
mutable_af_item
()
->
mutable_tf
();
tf
->
set_vid
(
tape_it
->
first
);
tf
->
set_f_seq
(
tape_it
->
second
.
second
.
fSeq
);
tf
->
set_block_id
(
tape_it
->
second
.
second
.
blockId
);
is_buffer_full
=
streambuf
->
Push
(
record
);
}
...
...
This diff is collapsed.
Click to expand it.
xrootd-ssi-protobuf-interface
@
36cf1ea8
Subproject commit 3
ce8079aec20aa77b3a4773e6caa02b36bb0a749
Subproject commit 3
6cf1ea86e6f6cd0843a9a90521b36c3948d2937
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