forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit237d1f3
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 parentcfe7bd1 commit237d1f3
1 file changed
+5
-3
lines changedLines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
168 | 168 |
| |
169 | 169 |
| |
170 | 170 |
| |
171 |
| - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
172 | 174 |
| |
173 | 175 |
| |
174 | 176 |
| |
| |||
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 |
| |
198 | 200 |
| |
|
0 commit comments
Comments
(0)