##// END OF EJS Templates
Fixes data loss in some cases of data recovery from the CosiunusProvider
Alexandre Leroux -
r764:6fa5f5facdaa
parent child
Show More
@@ -574,8 +574,13 void VariableController::VariableControllerPrivate::processRequest(std::shared_p
574
574
575 auto varStrategyRangesRequested
575 auto varStrategyRangesRequested
576 = m_VariableCacheStrategy->computeStrategyRanges(var->range(), rangeRequested);
576 = m_VariableCacheStrategy->computeStrategyRanges(var->range(), rangeRequested);
577 auto notInCacheRangeList = var->provideNotInCacheRangeList(varStrategyRangesRequested.second);
577
578 auto inCacheRangeList = var->provideInCacheRangeList(varStrategyRangesRequested.second);
578 auto notInCacheRangeList = QVector<SqpRange>{varStrategyRangesRequested.second};
579 auto inCacheRangeList = QVector<SqpRange>{};
580 if (m_VarIdToVarRequestIdQueueMap.find(varId) == m_VarIdToVarRequestIdQueueMap.cend()) {
581 notInCacheRangeList = var->provideNotInCacheRangeList(varStrategyRangesRequested.second);
582 inCacheRangeList = var->provideInCacheRangeList(varStrategyRangesRequested.second);
583 }
579
584
580 if (!notInCacheRangeList.empty()) {
585 if (!notInCacheRangeList.empty()) {
581 varRequest.m_RangeRequested = varStrategyRangesRequested.first;
586 varRequest.m_RangeRequested = varStrategyRangesRequested.first;
General Comments 0
You need to be logged in to leave comments. Login now