forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6ca7cd8
committed
Assert that buffer is pinned in LockBuffer().
Strengthen the LockBuffer() assertion that verifies BufferIsValid() bymaking it verify BufferIsPinned() instead. Do the same in nearbyrelated functions.There is probably not much chance that anybody will try to lock a bufferthat is not already pinned, but we might as well make sure of that.1 parent0fa0b48 commit6ca7cd8
1 file changed
+3
-3
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3743 | 3743 |
| |
3744 | 3744 |
| |
3745 | 3745 |
| |
3746 |
| - | |
| 3746 | + | |
3747 | 3747 |
| |
3748 | 3748 |
| |
3749 | 3749 |
| |
| |||
3769 | 3769 |
| |
3770 | 3770 |
| |
3771 | 3771 |
| |
3772 |
| - | |
| 3772 | + | |
3773 | 3773 |
| |
3774 | 3774 |
| |
3775 | 3775 |
| |
| |||
3801 | 3801 |
| |
3802 | 3802 |
| |
3803 | 3803 |
| |
3804 |
| - | |
| 3804 | + | |
3805 | 3805 |
| |
3806 | 3806 |
| |
3807 | 3807 |
| |
|
0 commit comments
Comments
(0)