bug fix from margo. she said:

> Essentially what was happening was that I was running out of overflow
> pages in an overflow point (you are limited to 2047).  When I upped the
> overflow point I was setting the offset to 0 and allocating an overflow
> page number that mapped to the same spot in the file as a bucket did.
> The overflow page got overwritten with the bucket on disk and voila --
> corrupt file.
This commit is contained in:
cgd 1993-06-09 18:20:35 +00:00
parent c425e255c1
commit ba42f6137c
1 changed files with 1 additions and 1 deletions

View File

@ -719,7 +719,7 @@ overflow_page(hashp)
hashp->OVFL_POINT = splitnum;
hashp->SPARES[splitnum] = hashp->SPARES[splitnum-1];
hashp->SPARES[splitnum-1]--;
offset = 0;
offset = 1;
}
/* Check if we need to allocate a new bitmap page */