AnsweredAssumed Answered

MFS Cache Bug

Question asked by Leif Zars on Dec 23, 2016
Latest reply on Apr 6, 2017 by Leif Zars

Provide MFS_sector_cache_invalidate with args first_sector = X and sectors = 1. Insure cache includes sector X.

The cache_record will not be invalidated!


Check the current code out...

last_sector = first_sector + sectors - 1; // so last_sector now equals X

if ((cache_record->SECTOR_NUM >= first_sector) && (cache_record->SECTOR_NUM < last_sector))

   //Do invalidation



The above evaluates to false, but the intent was for it to be true. Changing the second condition from < to <= fixes the issue.