forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite174f69
committed
Add some assertions in syncrep.c
A couple of routines assume that the LWLock SyncRepLock needs to betaken, so add a couple of assertions to be sure of that. Also, whenwaiting for a given LSN at transaction commit, the code implied that thesyncrep queue cleanup happens while holding interrupts, but the codenever checked after that.Author: Michael PaquierReviewed-by: Fujii Masao, Kyotaro Horiguchi, Dongming LiuDiscussion:https://postgr.es/m/a0806273-8bbb-43b3-bbe1-c45a58f6ae21.lingce.ldm@alibaba-inc.com1 parent2034519 commite174f69
1 file changed
+15
-1
lines changedLines changed: 15 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
149 | 149 |
| |
150 | 150 |
| |
151 | 151 |
| |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
152 | 159 |
| |
153 | 160 |
| |
154 | 161 |
| |
| |||
516 | 523 |
| |
517 | 524 |
| |
518 | 525 |
| |
| 526 | + | |
| 527 | + | |
519 | 528 |
| |
520 | 529 |
| |
521 | 530 |
| |
| |||
529 | 538 |
| |
530 | 539 |
| |
531 | 540 |
| |
| 541 | + | |
| 542 | + | |
532 | 543 |
| |
533 | 544 |
| |
534 | 545 |
| |
| |||
688 | 699 |
| |
689 | 700 |
| |
690 | 701 |
| |
| 702 | + | |
| 703 | + | |
691 | 704 |
| |
692 | 705 |
| |
693 | 706 |
| |
| |||
992 | 1005 |
| |
993 | 1006 |
| |
994 | 1007 |
| |
995 |
| - | |
| 1008 | + | |
996 | 1009 |
| |
997 | 1010 |
| |
998 | 1011 |
| |
| |||
1003 | 1016 |
| |
1004 | 1017 |
| |
1005 | 1018 |
| |
| 1019 | + | |
1006 | 1020 |
| |
1007 | 1021 |
| |
1008 | 1022 |
| |
|
0 commit comments
Comments
(0)