Fix rounding problem in dynahash.c's decision about when the target
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 21 Nov 2004 22:57:00 +0000 (22:57 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 21 Nov 2004 22:57:00 +0000 (22:57 +0000)
commit286508423c871d461c3fca84c3ae3f653acf55b8
tree5f95d37f8a9036cc556ed489d2a9211cbb4b1b18
parent54da6aca8ec1cb95209743bf025fe09c24a2c858
Fix rounding problem in dynahash.c's decision about when the target
fill factor has been exceeded.  We usually run with ffactor == 1, but
the way the test was coded, it wouldn't split a bucket until the actual
fill factor reached 2.0, because of use of integer division.  Change
from > to >= so that it will split more aggressively when the table
starts to get full.
src/backend/utils/hash/dynahash.c