pgsql: Fix incorrect loop counts in tidbitmap.c.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix incorrect loop counts in tidbitmap.c.
Дата
Msg-id E1VhSux-0005pT-Dg@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/e3a02a39268ff14a8f5f15f1bd9fb59869f26436

Modified Files
--------------
src/backend/nodes/tidbitmap.c |    4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix incorrect loop counts in tidbitmap.c.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix incorrect loop counts in tidbitmap.c.