Commit 6ca7cd8
committed
Assert that buffer is pinned in LockBuffer().
Strengthen the LockBuffer() assertion that verifies BufferIsValid() by
making it verify BufferIsPinned() instead. Do the same in nearby
related functions.
There is probably not much chance that anybody will try to lock a buffer
that is not already pinned, but we might as well make sure of that.1 parent 0fa0b48 commit 6ca7cd8
1 file changed
+3
-3
lines changed| Original 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