Commit 5324d36d authored by Jim King's avatar Jim King Committed by Jørgen Lind
Browse files

fix comments

parent 04a4c2a3
......@@ -3597,12 +3597,9 @@ main(int argc, char* argv[])
auto &chunkInfo = chunkInfos[chunk];
// if we've crossed to a new inline then trim the trace page cache
// if we've crossed to a new primary key range then trim the trace page cache
if (chunk > 0)
{
// TODO alternate versions for offset sorted and crossline sorted
const auto& previousChunkInfo = chunkInfos[chunk - 1];
for (size_t chunkFileIndex = 0; chunkFileIndex < dataProviders.size(); ++chunkFileIndex)
......@@ -3613,12 +3610,12 @@ main(int argc, char* argv[])
auto currentIndexIter = chunkInfo.lowerUpperSegmentIndices.find(chunkFileIndex);
if (currentIndexIter != chunkInfo.lowerUpperSegmentIndices.end())
{
// This file is active in both the current and previous chunks. Check to see if we've progressed to a new set of inlines.
// This file is active in both the current and previous chunks. Check to see if we've progressed to a new set of primary keys.
auto previousLowerSegmentIndex = std::get<0>(prevIndexIter->second);
auto currentLowerSegmentIndex = std::get<0>(currentIndexIter->second);
if (currentLowerSegmentIndex > previousLowerSegmentIndex)
{
// we've progressed to a new set of inlines; remove earlier pages from the cache
// we've progressed to a new set of primary keys; remove earlier pages from the cache
traceDataManagers[chunkFileIndex].retirePagesBefore(fileInfo.m_segmentInfoLists[chunkFileIndex][currentLowerSegmentIndex].m_traceStart);
}
}
......
Supports Markdown
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