forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd2fd7f7
committed
Fix off-by-one error in txid_status().
The transaction ID returned by GetNextXidAndEpoch() is in the future,so we can't attempt to access its status or we might try to read aCLOG page that doesn't exist. The > vs >= confusion probably stemmedfrom the choice of a variable name containing the word "last" insteadof "next", so fix that too.Back-patch to 10 where the function arrived.Author: Thomas MunroDiscussion:https://postgr.es/m/CA%2BhUKG%2Buua_BV5cyfsioKVN2d61Lukg28ECsWTXKvh%3DBtN2DPA%40mail.gmail.com1 parent1983af8 commitd2fd7f7
1 file changed
+4
-4
lines changedLines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
113 | 113 |
| |
114 | 114 |
| |
115 | 115 |
| |
116 |
| - | |
| 116 | + | |
117 | 117 |
| |
118 |
| - | |
| 118 | + | |
119 | 119 |
| |
120 | 120 |
| |
121 | 121 |
| |
| |||
129 | 129 |
| |
130 | 130 |
| |
131 | 131 |
| |
132 |
| - | |
| 132 | + | |
133 | 133 |
| |
134 | 134 |
| |
135 | 135 |
| |
| |||
151 | 151 |
| |
152 | 152 |
| |
153 | 153 |
| |
154 |
| - | |
| 154 | + | |
155 | 155 |
| |
156 | 156 |
| |
157 | 157 |
| |
|
0 commit comments
Comments
(0)