forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit362de94
committed
Remove field UpdateContext->updated in nodeModifyTable.c
This field has been redundant ever since it was added by commit25e777c, which split up ExecUpdate() and ExecDelete() into reusablepieces. The only place that reads it is ExecMergeMatched(), if theresult from ExecUpdateAct() is TM_Ok. However, all paths throughExecUpdateAct() that return TM_Ok also set this field to true, so thereturn status by itself is sufficient to tell if the update happened.Removing this field is a modest simplification, and it brings theUPDATE path in ExecMergeMatched() more into line with ExecUpdate(),ensuring that ExecUpdateEpilogue() is always called if ExecUpdateAct()returns TM_Ok, reducing the chance of bugs.Dean Rasheed, reviewed by Alvaro Herrera.Discussion:https://postgr.es/m/CAEZATCWGGmigGBzLHkJm5Ccv2mMxXmwi3%2Buq0yhwDHm-tsvSLg%40mail.gmail.com1 parent6fd144e commit362de94
1 file changed
+1
-5
lines changedLines changed: 1 addition & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
109 | 109 |
| |
110 | 110 |
| |
111 | 111 |
| |
112 |
| - | |
113 | 112 |
| |
114 | 113 |
| |
115 | 114 |
| |
| |||
2042 | 2041 |
| |
2043 | 2042 |
| |
2044 | 2043 |
| |
2045 |
| - | |
2046 | 2044 |
| |
2047 | 2045 |
| |
2048 | 2046 |
| |
| |||
2111 | 2109 |
| |
2112 | 2110 |
| |
2113 | 2111 |
| |
2114 |
| - | |
2115 |
| - | |
2116 | 2112 |
| |
2117 | 2113 |
| |
2118 | 2114 |
| |
| |||
2919 | 2915 |
| |
2920 | 2916 |
| |
2921 | 2917 |
| |
2922 |
| - | |
| 2918 | + | |
2923 | 2919 |
| |
2924 | 2920 |
| |
2925 | 2921 |
| |
|
0 commit comments
Comments
(0)