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
9d002401
Commit
9d002401
authored
3 years ago
by
mvelosob
Browse files
Options
Downloads
Patches
Plain Diff
Fix segmentatin fault when list repacks with a tape that has been deleted (#1029)
parent
1e8daea2
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
ReleaseNotes.md
+3
-0
3 additions, 0 deletions
ReleaseNotes.md
xroot_plugins/XrdCtaRepackLs.hpp
+3
-3
3 additions, 3 deletions
xroot_plugins/XrdCtaRepackLs.hpp
with
6 additions
and
3 deletions
ReleaseNotes.md
+
3
−
0
View file @
9d002401
...
...
@@ -4,6 +4,9 @@
### Features
### Bug fixes
-
cta/CTA#1029 Fix segmentatin fault in frontend when list repacks of a tape that has been deleted in the catalogue
# v4.2-1
## Summary
...
...
This diff is collapsed.
Click to expand it.
xroot_plugins/XrdCtaRepackLs.hpp
+
3
−
3
View file @
9d002401
...
...
@@ -65,10 +65,10 @@ namespace cta { namespace xrd {
std
::
inserter
(
tapeVids
,
tapeVids
.
begin
()),
[](
cta
::
common
::
dataStructures
::
RepackInfo
&
ri
)
{
return
ri
.
vid
;});
cta
::
common
::
dataStructures
::
VidToTapeMap
tapeVidMap
=
m_catalogue
.
getTapesByVid
(
tapeVids
);
// throws an exception if a vid does not exist
streambuf
=
new
XrdSsiPb
::
OStreamBuffer
<
Data
>
(
dlen
);
cta
::
common
::
dataStructures
::
VidToTapeMap
tapeVidMap
=
m_catalogue
.
getTapesByVid
(
tapeVids
);
// throws an exception if a vid does not exist
for
(
bool
is_buffer_full
=
false
;
!
m_repackList
.
empty
()
&&
!
is_buffer_full
;
m_repackList
.
pop_front
()){
Data
record
;
auto
&
repackRequest
=
m_repackList
.
front
();
...
...
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