[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#7589) MDB nodesize issues



Howard Chu writes:
> Hallvard Breien Furuseth wrote:
>   "Non-LEAF2 nodes are
>> even-sized" feels like a deeply embedded assumption, but I haven't
>> really looked.
> 
> Explicitly documented:
> 
>      /** Header for a single key/data pair within a page.
>       * We guarantee 2-byte alignment for nodes.
>       */
> typedef struct MDB_node {
> 
> Obviously you cannot guarantee 2-byte alignment unless nodes are always even 
> sized.

Indeed.  But I was wondering how hard to try to rescue databases
where that doc is false.

-- 
Hallvard