- Notifications
You must be signed in to change notification settings - Fork4.9k
Commitf6ff75f
committed
Make BufferIsExclusiveLocked and BufferIsDirty work for local buffers.
These functions tried to check the state of the buffer's content lockeven for local buffers. Since we don't use the content lock for alocal buffer, that would lead to a "false" result fromLWLockHeldByMeInMode, which would mean a misleading "false" answerfrom BufferIsExclusiveLocked (we'd rather that case always return"true") or an assertion failure in BufferIsDirty.The core code never applies these two functions to local buffers,and apparently no extensions do either, since we've not heardcomplaints. Still, in the name of future-proofing, let's fixthem to act as though a pinned local buffer is content-locked.Author: Srinath Reddy <srinath2133@gmail.com>Discussion:https://postgr.es/m/19396ef77f8.1098c4a1810508.2255483659262451647@zohocorp.com1 parent128897b commitf6ff75f
1 file changed
+11
-11
lines changedLines changed: 11 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2472 | 2472 |
| |
2473 | 2473 |
| |
2474 | 2474 |
| |
| 2475 | + | |
| 2476 | + | |
2475 | 2477 |
| |
2476 | 2478 |
| |
2477 |
| - | |
2478 |
| - | |
2479 |
| - | |
| 2479 | + | |
| 2480 | + | |
2480 | 2481 |
| |
2481 | 2482 |
| |
2482 | 2483 |
| |
2483 | 2484 |
| |
| 2485 | + | |
| 2486 | + | |
2484 | 2487 |
| |
2485 |
| - | |
2486 |
| - | |
2487 |
| - | |
2488 |
| - | |
2489 | 2488 |
| |
2490 | 2489 |
| |
2491 | 2490 |
| |
| |||
2501 | 2500 |
| |
2502 | 2501 |
| |
2503 | 2502 |
| |
| 2503 | + | |
| 2504 | + | |
2504 | 2505 |
| |
2505 | 2506 |
| |
2506 | 2507 |
| |
2507 | 2508 |
| |
2508 | 2509 |
| |
| 2510 | + | |
2509 | 2511 |
| |
2510 | 2512 |
| |
2511 | 2513 |
| |
2512 | 2514 |
| |
| 2515 | + | |
| 2516 | + | |
2513 | 2517 |
| |
2514 | 2518 |
| |
2515 |
| - | |
2516 |
| - | |
2517 |
| - | |
2518 |
| - | |
2519 | 2519 |
| |
2520 | 2520 |
| |
2521 | 2521 |
| |
|
0 commit comments
Comments
(0)