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:
parent
c425e255c1
commit
ba42f6137c
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue