Commit 6a220c31 authored by Jørgen Lind's avatar Jørgen Lind
Browse files

Issue #10: Make sure the Request is not deleted while waiting

parent 7854216b
Pipeline #452 passed with stages
in 6 minutes and 37 seconds
......@@ -593,9 +593,9 @@ void VolumeDataAccessManagerImpl::FlushUploadQueue()
std::unique_lock<std::mutex> lock(m_mutex);
if(m_pendingUploadRequests.empty()) break;
Request &request = *m_pendingUploadRequests.begin()->second.request;
std::shared_ptr<Request> request = m_pendingUploadRequests.begin()->second.request;
for(auto it = m_vds.layerMetadataContainer.managers.begin(); it != m_vds.layerMetadataContainer.managers.end(); ++it)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment