forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit69bd606

Amit Kapila
Fix initialization of RelationSyncEntry for streaming transactions.
In commit4648243, for each RelationSyncEntry we maintained the listof xids (streamed_txns) for which we have already sent the schema. Thishelps us to track when to send the schema to the downstream node forreplication of streaming transactions. Before this list got initialized,we were processing invalidation messages which access this list and ledto an assertion failure.In passing, clean up the nearby code:* Initialize the list of xids with NIL instead of NULL which is our usualcoding practice.* Remove the MemoryContext switch for creating a RelationSyncEntry in dynahash.Diagnosed-by: Amit Kapila and Tom LaneAuthor: Amit KapilaReviewed-by: Tom Lane and Dilip KumarDiscussion:https://postgr.es/m/904373.1600033123@sss.pgh.pa.us1 parent19c60ad commit69bd606
1 file changed
+15
-14
lines changedLines changed: 15 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
945 | 945 |
| |
946 | 946 |
| |
947 | 947 |
| |
948 |
| - | |
949 |
| - | |
| 948 | + | |
950 | 949 |
| |
951 | 950 |
| |
952 | 951 |
| |
953 |
| - | |
954 | 952 |
| |
955 | 953 |
| |
956 | 954 |
| |
957 |
| - | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
958 | 968 |
| |
959 | 969 |
| |
960 | 970 |
| |
| |||
977 | 987 |
| |
978 | 988 |
| |
979 | 989 |
| |
980 |
| - | |
981 |
| - | |
982 |
| - | |
983 | 990 |
| |
984 | 991 |
| |
985 | 992 |
| |
| |||
1054 | 1061 |
| |
1055 | 1062 |
| |
1056 | 1063 |
| |
1057 |
| - | |
1058 |
| - | |
1059 |
| - | |
1060 |
| - | |
1061 |
| - | |
1062 |
| - | |
1063 | 1064 |
| |
1064 | 1065 |
| |
1065 | 1066 |
| |
| |||
1145 | 1146 |
| |
1146 | 1147 |
| |
1147 | 1148 |
| |
1148 |
| - | |
| 1149 | + | |
1149 | 1150 |
| |
1150 | 1151 |
| |
1151 | 1152 |
| |
|
0 commit comments
Comments
(0)