OSDN Git Service

Modify aset.c to track the next intended block allocation size explicitly.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 8 Nov 2006 19:27:24 +0000 (19:27 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 8 Nov 2006 19:27:24 +0000 (19:27 +0000)
commit808b3190d143f3df7217f94aff9e97fdf19c790a
treef272c68cb1e2ce8db88d066b38fadedde690da2f
parentfc5eb3f69a32f1bc5109576f5725dbdc33cdc1ca
Modify aset.c to track the next intended block allocation size explicitly.
The former coding relied on the actual allocated size of the last block,
which made it behave strangely if the first allocation in a context was
larger than ALLOC_CHUNK_LIMIT: subsequent allocations would be referenced
to that and not to the intended series of block sizes.  Noted while
studying a memory wastage gripe from Tatsuo.
src/backend/utils/mmgr/aset.c