- Notifications
You must be signed in to change notification settings - Fork4.9k
Commitc928dc9
committed
Fix old visibility bug in HeapTupleSatisfiesDirty
If a tuple is locked but not updated by a concurrent transaction,HeapTupleSatisfiesDirty would return that transaction's Xid in xmax,causing callers to wait on it, when it is not necessary (in fact, if theother transaction had used a multixact instead of a plain Xid to markthe tuple, HeapTupleSatisfiesDirty would have behave differently and*not* returned the Xmax).This bug was introduced in commit3f7fbf8, dated December 1998,so it's almost 15 years old now. However, it's hard to see thismisbehave, because before we had NOWAIT the only consequence of this isthat transactions would wait for slightly more time than necessary; soit's not surprising that this hasn't been reported yet.Craig Ringer and Andres Freund1 parent7112775 commitc928dc9
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
861 | 861 |
| |
862 | 862 |
| |
863 | 863 |
| |
864 |
| - | |
| 864 | + | |
| 865 | + | |
865 | 866 |
| |
866 | 867 |
| |
867 | 868 |
| |
|
0 commit comments
Comments
(0)