forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit819b69a
committed
bufmgr: Add some more error checking [infrastructure] around pinning
This adds a few more assertions against a buffer being local in places wedon't expect, and extracts the check for a buffer being pinned exactly oncefrom LockBufferForCleanup() into its own function. Later commits will use thisfunction.Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi>Reviewed-by: Melanie Plageman <melanieplageman@gmail.com>Discussion:http://postgr.es/m/419312fd-9255-078c-c3e3-f0525f911d7f@iki.fi1 parent4d330a6 commit819b69a
2 files changed
+33
-12
lines changedLines changed: 32 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1735 | 1735 |
| |
1736 | 1736 |
| |
1737 | 1737 |
| |
| 1738 | + | |
| 1739 | + | |
1738 | 1740 |
| |
1739 | 1741 |
| |
1740 | 1742 |
| |
| |||
1880 | 1882 |
| |
1881 | 1883 |
| |
1882 | 1884 |
| |
| 1885 | + | |
| 1886 | + | |
1883 | 1887 |
| |
1884 | 1888 |
| |
1885 | 1889 |
| |
| |||
4253 | 4257 |
| |
4254 | 4258 |
| |
4255 | 4259 |
| |
| 4260 | + | |
| 4261 | + | |
| 4262 | + | |
| 4263 | + | |
| 4264 | + | |
| 4265 | + | |
| 4266 | + | |
| 4267 | + | |
| 4268 | + | |
| 4269 | + | |
| 4270 | + | |
| 4271 | + | |
| 4272 | + | |
| 4273 | + | |
| 4274 | + | |
| 4275 | + | |
| 4276 | + | |
| 4277 | + | |
| 4278 | + | |
| 4279 | + | |
| 4280 | + | |
| 4281 | + | |
| 4282 | + | |
4256 | 4283 |
| |
4257 | 4284 |
| |
4258 | 4285 |
| |
| |||
4280 | 4307 |
| |
4281 | 4308 |
| |
4282 | 4309 |
| |
| 4310 | + | |
| 4311 | + | |
| 4312 | + | |
4283 | 4313 |
| |
4284 |
| - | |
4285 |
| - | |
4286 |
| - | |
4287 |
| - | |
4288 |
| - | |
4289 |
| - | |
4290 | 4314 |
| |
4291 |
| - | |
4292 |
| - | |
4293 |
| - | |
4294 |
| - | |
4295 |
| - | |
4296 |
| - | |
4297 | 4315 |
| |
4298 | 4316 |
| |
4299 | 4317 |
| |
| |||
4794 | 4812 |
| |
4795 | 4813 |
| |
4796 | 4814 |
| |
| 4815 | + | |
| 4816 | + | |
4797 | 4817 |
| |
4798 | 4818 |
| |
4799 | 4819 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
134 | 134 |
| |
135 | 135 |
| |
136 | 136 |
| |
| 137 | + | |
137 | 138 |
| |
138 | 139 |
| |
139 | 140 |
| |
|
0 commit comments
Comments
(0)