Skip to content
Snippets Groups Projects
Commit 8a89a272 authored by Michael Davis's avatar Michael Davis
Browse files

[lpa-stream] Fixes retrieve queue constructor

parent 5a62eb23
No related branches found
No related tags found
No related merge requests found
......@@ -180,7 +180,8 @@ template<>
QueueItor<objectstore::RootEntry::RetrieveQueueDump, objectstore::RetrieveQueue>::
QueueItor(objectstore::Backend &objectStore, const std::string &queue_id) :
m_objectStore(objectStore),
m_onlyThisQueueId(!queue_id.empty())
m_onlyThisQueueId(!queue_id.empty()),
m_jobQueueIt(m_jobQueue.begin())
{
objectstore::RootEntry re(m_objectStore);
objectstore::ScopedSharedLock rel(re);
......
......@@ -101,7 +101,7 @@ public:
} else {
// Summary by tapepool or vid
for(bool is_buffer_full = false; !m_queueItor.end() && !is_buffer_full; )
for(bool is_buffer_full = false; !(is_buffer_full || m_queueItor.end()); )
{
uint64_t total_files = 0;
uint64_t total_size = 0;
......
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