Do not re-hash firstPages.

They're already known to be valid.
This commit is contained in:
Alex Miller 2019-02-07 17:02:43 -08:00
parent b41611694f
commit 334730ce7d
1 changed files with 3 additions and 1 deletions

View File

@ -1161,7 +1161,9 @@ private:
.detail("File0Name", rawQueue->files[0].dbgFilename);
for(int i = 1; i >= 0; i--)
if ( firstPages(i).checkHash() && firstPages(i).seq <= (size_t)loc ) {
// FIXME: Removed `firstPages(i).checkHash() &&`
// Only put a page in firstPages() if its checksum is valid
if ( firstPages(i).seq <= (size_t)loc ) {
*file = i;
*page = (loc - firstPages(i).seq)/sizeof(Page);
if (context)