List:Internals« Previous MessageNext Message »
From:Krishnamurthy Vishwanatha Date:December 5 2005 12:53pm
Subject:Help needed on HEAP storage engine internals
View as plain text  
Hi,

I'm a newbie to HEAP storage engine internals. I came across the comment as shown below in
include/heap.h. It would really be of great help if any one  could elaborate on it.

/*
  Heap table records and hash index entries are stored in HP_BLOCKs.
  HP_BLOCK is used as a 'growable array' of fixed-size records. Size of record
  is recbuffer bytes.
  The internal representation is as follows:
  HP_BLOCK is a hierarchical structure of 'blocks'.
  A block at level 0 is an array records_in_block records. 
  A block at higher level is an HP_PTRS structure with pointers to blocks at 
  lower levels.
  At the highest level there is one top block. It is stored in HP_BLOCK::root.

  See hp_find_block for a description of how record pointer is obtained from 
  its index.
  See hp_get_new_block 
*/




*
Thanks in advance,
Vishwa


Thread
bk commit into 5.1 tree (jani:1.1951)jani5 Dec
  • Help needed on HEAP storage engine internalsKrishnamurthy Vishwanatha5 Dec