Commit f7feb02
committed
Fix GetNewTransactionId()'s interaction with xidVacLimit.
Commit ad30805 switched to returning a FullTransactionId, but
failed to load the potentially updated value in the case where
xidVacLimit is reached and we release and reacquire the lock.
Repair, closing bug #15727.
While reviewing that commit, also fix the size computation used
by EstimateTransactionStateSize() and switch to the mul_size()
macro traditionally used in such expressions.
Author: Thomas Munro
Reported-by: Roman Zharkov
Discussion: https://postgr.es/m/15727-0be246e7d852d229%40postgresql.org1 parent d87ab88 commit f7feb02
2 files changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
| 163 | + | |
163 | 164 | | |
164 | 165 | | |
165 | 166 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5151 | 5151 | | |
5152 | 5152 | | |
5153 | 5153 | | |
5154 | | - | |
| 5154 | + | |
5155 | 5155 | | |
5156 | 5156 | | |
5157 | 5157 | | |
| |||
0 commit comments