forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit84db516
committed
Fix one-off bug causing missing commit timestamps for subtransactions
The logic in charge of writing commit timestamps (enabled withtrack_commit_timestamp) for subtransactions had a one-bug bug,where it would be possible that commit timestamps go missing for thelast subtransaction committed.While on it, simplify a bit the iteration logic in the loop writing thecommit timestamps, as per suggestions from Kyotaro Horiguchi and TomLane, so as some variable initializations are not part of the loopitself.Issue introduced in73c986a.Analyzed-by: Alex KingsboroughAuthor: Alex Kingsborough, Kyotaro HoriguchiDiscussion:https://postgr.es/m/73A66172-4050-4F2A-B7F1-13508EDA2144@amazon.comBackpatch-through: 101 parentcf680bd commit84db516
1 file changed
+5
-3
lines changedLines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
167 | 167 |
| |
168 | 168 |
| |
169 | 169 |
| |
170 |
| - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
171 | 173 |
| |
172 | 174 |
| |
173 | 175 |
| |
| |||
183 | 185 |
| |
184 | 186 |
| |
185 | 187 |
| |
186 |
| - | |
| 188 | + | |
187 | 189 |
| |
188 | 190 |
| |
189 | 191 |
| |
190 | 192 |
| |
191 | 193 |
| |
192 | 194 |
| |
193 | 195 |
| |
194 |
| - | |
| 196 | + | |
195 | 197 |
| |
196 | 198 |
| |
197 | 199 |
| |
|
0 commit comments
Comments
(0)