Commit 362de94
committed
Remove field UpdateContext->updated in nodeModifyTable.c
This field has been redundant ever since it was added by commit
25e777c, which split up ExecUpdate() and ExecDelete() into reusable
pieces. The only place that reads it is ExecMergeMatched(), if the
result from ExecUpdateAct() is TM_Ok. However, all paths through
ExecUpdateAct() that return TM_Ok also set this field to true, so the
return status by itself is sufficient to tell if the update happened.
Removing this field is a modest simplification, and it brings the
UPDATE 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 parent 6fd144e commit 362de94
1 file changed
+1
-5
lines changed| 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