Commit 3fed417
committed
Provide a way to predefine LWLock tranche IDs.
It's a bit cumbersome to use LWLockNewTrancheId(), because the returned
value needs to be shared between backends so that each backend can call
LWLockRegisterTranche() 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 parent 43cd468 commit 3fed417
3 files changed
+18
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
512 | 512 | | |
513 | 513 | | |
514 | 514 | | |
515 | | - | |
516 | 515 | | |
517 | 516 | | |
518 | 517 | | |
| |||
4653 | 4652 | | |
4654 | 4653 | | |
4655 | 4654 | | |
4656 | | - | |
| 4655 | + | |
4657 | 4656 | | |
4658 | 4657 | | |
4659 | 4658 | | |
| |||
4677 | 4676 | | |
4678 | 4677 | | |
4679 | 4678 | | |
4680 | | - | |
4681 | | - | |
4682 | 4679 | | |
4683 | 4680 | | |
4684 | 4681 | | |
4685 | 4682 | | |
4686 | | - | |
| 4683 | + | |
4687 | 4684 | | |
4688 | 4685 | | |
4689 | | - | |
4690 | | - | |
| 4686 | + | |
4691 | 4687 | | |
4692 | 4688 | | |
4693 | 4689 | | |
| |||
| 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 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
179 | 190 | | |
180 | 191 | | |
181 | 192 | | |
| |||
0 commit comments