# File lib/innodb/index.rb, line 54 def _recurse(parent_page, page_proc, link_proc, depth=0) if page_proc && parent_page.type == :INDEX page_proc.call(parent_page, depth) end parent_page.each_child_page do |child_page_number, child_min_key| child_page = page(child_page_number) child_page.record_describer = record_describer if child_page.type == :INDEX if link_proc link_proc.call(parent_page, child_page, child_min_key, depth+1) end _recurse(child_page, page_proc, link_proc, depth+1) end end end