forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit32b3284
committed
Fix incorrect loop counts in tidbitmap.c.
A couple of places that should have been iterating over WORDS_PER_CHUNKwords were iterating over WORDS_PER_PAGE words instead. This thinkoaccidentally failed to fail, because (at least on common architectureswith 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 theparameters affecting TIDBitmap sizes, and it's a small waste of cyclestoo. So back-patch to all active branches.Etsuro Fujita1 parent1821ef1 commit32b3284
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
362 | 362 |
| |
363 | 363 |
| |
364 | 364 |
| |
365 |
| - | |
| 365 | + | |
366 | 366 |
| |
367 | 367 |
| |
368 | 368 |
| |
| |||
474 | 474 |
| |
475 | 475 |
| |
476 | 476 |
| |
477 |
| - | |
| 477 | + | |
478 | 478 |
| |
479 | 479 |
| |
480 | 480 |
| |
|
0 commit comments
Comments
(0)