Commit e174f69
committed
Add some assertions in syncrep.c
A couple of routines assume that the LWLock SyncRepLock needs to be
taken, so add a couple of assertions to be sure of that. Also, when
waiting for a given LSN at transaction commit, the code implied that the
syncrep queue cleanup happens while holding interrupts, but the code
never checked after that.
Author: Michael Paquier
Reviewed-by: Fujii Masao, Kyotaro Horiguchi, Dongming Liu
Discussion: https://postgr.es/m/a0806273-8bbb-43b3-bbe1-c45a58f6ae21.lingce.ldm@alibaba-inc.com1 parent 2034519 commit e174f69
1 file changed
+15
-1
lines changed| 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