forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf39aecb
Provide a way to predefine LWLock tranche IDs.
It's a bit cumbersome to use LWLockNewTrancheId(), because the returnedvalue needs to be shared between backends so that each backend can callLWLockRegisterTranche() with the correct ID. So, for built-in tranches,use a hard-coded value instead.This is motivated by an upcoming patch adding further built-in tranches.Andres Freund and Robert Haas1 parent0fd361a commitf39aecb
3 files changed
+18
-10
lines changedLines changed: 3 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
512 | 512 |
| |
513 | 513 |
| |
514 | 514 |
| |
515 |
| - | |
516 | 515 |
| |
517 | 516 |
| |
518 | 517 |
| |
| |||
4635 | 4634 |
| |
4636 | 4635 |
| |
4637 | 4636 |
| |
4638 |
| - | |
| 4637 | + | |
4639 | 4638 |
| |
4640 | 4639 |
| |
4641 | 4640 |
| |
| |||
4659 | 4658 |
| |
4660 | 4659 |
| |
4661 | 4660 |
| |
4662 |
| - | |
4663 |
| - | |
4664 | 4661 |
| |
4665 | 4662 |
| |
4666 | 4663 |
| |
4667 | 4664 |
| |
4668 |
| - | |
| 4665 | + | |
4669 | 4666 |
| |
4670 | 4667 |
| |
4671 |
| - | |
4672 |
| - | |
| 4668 | + | |
4673 | 4669 |
| |
4674 | 4670 |
| |
4675 | 4671 |
| |
|
Lines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
445 | 445 |
| |
446 | 446 |
| |
447 | 447 |
| |
448 |
| - | |
| 448 | + | |
449 | 449 |
| |
450 | 450 |
| |
451 | 451 |
| |
| |||
457 | 457 |
| |
458 | 458 |
| |
459 | 459 |
| |
460 |
| - | |
| 460 | + | |
461 | 461 |
| |
462 | 462 |
| |
463 | 463 |
| |
| |||
466 | 466 |
| |
467 | 467 |
| |
468 | 468 |
| |
| 469 | + | |
469 | 470 |
| |
470 | 471 |
| |
471 | 472 |
| |
472 | 473 |
| |
473 | 474 |
| |
474 |
| - | |
| 475 | + | |
475 | 476 |
| |
476 | 477 |
| |
477 | 478 |
| |
|
Lines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
172 | 172 |
| |
173 | 173 |
| |
174 | 174 |
| |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
175 | 186 |
| |
176 | 187 |
| |
177 | 188 |
| |
|
0 commit comments
Comments
(0)