Beispiel #1
0
 private static void EnsureValidLastSearchPosition(Page page, long referencedPageNumber, int originalLastSearchPosition)
 {
     if (page.NumberOfEntries <= originalLastSearchPosition || page.GetNode(originalLastSearchPosition)->PageNumber != referencedPageNumber)
     {
         page.LastSearchPosition = page.NodePositionReferencing(referencedPageNumber);
     }
     else
     {
         page.LastSearchPosition = originalLastSearchPosition;
     }
 }
Beispiel #2
0
 private static void EnsureValidLastSearchPosition(Page page, long referencedPageNumber, int originalLastSearchPosition)
 {
     if (page.NumberOfEntries <= originalLastSearchPosition || page.GetNode(originalLastSearchPosition)->PageNumber != referencedPageNumber)
         page.LastSearchPosition = page.NodePositionReferencing(referencedPageNumber);
     else
         page.LastSearchPosition = originalLastSearchPosition;
 }