Skip to content
Snippets Groups Projects
Commit 9d002401 authored by mvelosob's avatar mvelosob
Browse files

Fix segmentatin fault when list repacks with a tape that has been deleted (#1029)

parent 1e8daea2
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment