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

Fix so there is no inconsistency when flushing metadatapages

parent 8c5136f9
......@@ -160,7 +160,7 @@ void MetadataManager::UploadDirtyPages(VolumeDataStoreIOManager *volumeDataStore
for(MetadataPageList::iterator it = m_dirtyPageList.begin(), next; it != m_dirtyPageList.end(); it = next)
{
auto page = *it;
auto &page = *it;
assert(page.IsDirty());
// We need to keep a separate 'next' iterator since we're moving the current element to another list if the write is successful
......
......@@ -331,7 +331,6 @@ bool VolumeDataRequestProcessor::IsCanceled(int64_t jobID)
SetErrorForJob(job);
m_manager.SetCurrentDownloadError(job->completedError);
m_jobs.erase(job_it);
fmt::print(stderr, "C++ cancelledand removed\n");
return true;
}
return false;
......
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