- Notifications
You must be signed in to change notification settings - Fork5
Commitd25fbf9
committed
Fix two off-by-one errors in bufmgr.c.
In4b4b680 I passed a buffer index number (starting from 0) instead ofa proper Buffer id (which start from 1 for shared buffers) in twoplaces.This wasn't noticed so far as one of those locations isn't compiled atall (PrintPinnedBufs) and the other one (InvalidBuffer) requires aunlikely, but possible, set of circumstances to trigger a symptom.To reduce the likelihood of such incidents a bit also convert existingopen coded mappings from buffer descriptors to buffer ids withBufferDescriptorGetBuffer().Author: Qingqing ZhouReported-By: Qingqing ZhouDiscussion: CAJjS0u2ai9ooUisKtkV8cuVUtEkMTsbK8c7juNAjv8K11zeCQg@mail.gmail.comBackpatch: 9.5 where the private ref count infrastructure was introduced1 parent8a0258c commitd25fbf9
1 file changed
+19
-17
lines changedLines changed: 19 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1273 | 1273 |
| |
1274 | 1274 |
| |
1275 | 1275 |
| |
1276 |
| - | |
| 1276 | + | |
1277 | 1277 |
| |
1278 | 1278 |
| |
1279 | 1279 |
| |
| |||
1426 | 1426 |
| |
1427 | 1427 |
| |
1428 | 1428 |
| |
1429 |
| - | |
| 1429 | + | |
1430 | 1430 |
| |
1431 | 1431 |
| |
1432 | 1432 |
| |
1433 |
| - | |
| 1433 | + | |
1434 | 1434 |
| |
1435 | 1435 |
| |
1436 | 1436 |
| |
1437 | 1437 |
| |
1438 |
| - | |
| 1438 | + | |
1439 | 1439 |
| |
1440 | 1440 |
| |
1441 | 1441 |
| |
| |||
1460 | 1460 |
| |
1461 | 1461 |
| |
1462 | 1462 |
| |
1463 |
| - | |
1464 |
| - | |
| 1463 | + | |
1465 | 1464 |
| |
1466 | 1465 |
| |
1467 | 1466 |
| |
| |||
1489 | 1488 |
| |
1490 | 1489 |
| |
1491 | 1490 |
| |
1492 |
| - | |
| 1491 | + | |
1493 | 1492 |
| |
1494 | 1493 |
| |
1495 | 1494 |
| |
1496 | 1495 |
| |
1497 | 1496 |
| |
1498 | 1497 |
| |
1499 |
| - | |
| 1498 | + | |
1500 | 1499 |
| |
1501 | 1500 |
| |
1502 | 1501 |
| |
1503 | 1502 |
| |
1504 |
| - | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
1505 | 1506 |
| |
1506 | 1507 |
| |
1507 |
| - | |
1508 |
| - | |
| 1508 | + | |
1509 | 1509 |
| |
1510 | 1510 |
| |
1511 | 1511 |
| |
| |||
1520 | 1520 |
| |
1521 | 1521 |
| |
1522 | 1522 |
| |
| 1523 | + | |
1523 | 1524 |
| |
1524 | 1525 |
| |
1525 |
| - | |
| 1526 | + | |
1526 | 1527 |
| |
1527 | 1528 |
| |
1528 | 1529 |
| |
1529 |
| - | |
1530 |
| - | |
| 1530 | + | |
1531 | 1531 |
| |
1532 | 1532 |
| |
1533 | 1533 |
| |
| |||
2739 | 2739 |
| |
2740 | 2740 |
| |
2741 | 2741 |
| |
| 2742 | + | |
2742 | 2743 |
| |
2743 | 2744 |
| |
2744 | 2745 |
| |
| |||
2747 | 2748 |
| |
2748 | 2749 |
| |
2749 | 2750 |
| |
2750 |
| - | |
| 2751 | + | |
2751 | 2752 |
| |
2752 | 2753 |
| |
2753 | 2754 |
| |
| |||
2761 | 2762 |
| |
2762 | 2763 |
| |
2763 | 2764 |
| |
| 2765 | + | |
2764 | 2766 |
| |
2765 |
| - | |
| 2767 | + | |
2766 | 2768 |
| |
2767 | 2769 |
| |
2768 | 2770 |
| |
| |||
2771 | 2773 |
| |
2772 | 2774 |
| |
2773 | 2775 |
| |
2774 |
| - | |
| 2776 | + | |
2775 | 2777 |
| |
2776 | 2778 |
| |
2777 | 2779 |
| |
|
0 commit comments
Comments
(0)