diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2013-11-15 18:34:14 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2013-11-15 18:34:39 -0500 |
commit | 6765a2c96af49dbbd5391804100cae5eedadb94b (patch) | |
tree | a204e2c6846ae47fbc6bbc3a460c5396ce223f66 /src/port/win32error.c | |
parent | 0d6a006df6a3d57a3872d982a273e0e71f091dbd (diff) |
Fix incorrect loop counts in tidbitmap.c.
A couple of places that should have been iterating over WORDS_PER_CHUNK
words were iterating over WORDS_PER_PAGE words instead. This thinko
accidentally failed to fail, because (at least on common architectures
with default BLCKSZ) WORDS_PER_CHUNK is a bit less than WORDS_PER_PAGE,
and the extra words being looked at were always zero so nothing happened.
Still, it's a bug waiting to happen if anybody ever fools with the
parameters affecting TIDBitmap sizes, and it's a small waste of cycles
too. So back-patch to all active branches.
Etsuro Fujita
Diffstat (limited to 'src/port/win32error.c')
0 files changed, 0 insertions, 0 deletions