mirror of https://github.com/citusdata/citus.git
Check if xact id is in progress before checking if aborted (#5312)
(cherry picked from commit e6ed764f63
)
pull/5315/head
parent
9cde3d4122
commit
1feb7102b8
|
@ -1269,7 +1269,8 @@ BuildStripeMetadata(Relation columnarStripes, HeapTuple heapTuple)
|
||||||
* subtransaction id here.
|
* subtransaction id here.
|
||||||
*/
|
*/
|
||||||
TransactionId entryXmin = HeapTupleHeaderGetXmin(heapTuple->t_data);
|
TransactionId entryXmin = HeapTupleHeaderGetXmin(heapTuple->t_data);
|
||||||
stripeMetadata->aborted = TransactionIdDidAbort(entryXmin);
|
stripeMetadata->aborted = !TransactionIdIsInProgress(entryXmin) &&
|
||||||
|
TransactionIdDidAbort(entryXmin);
|
||||||
stripeMetadata->insertedByCurrentXact =
|
stripeMetadata->insertedByCurrentXact =
|
||||||
TransactionIdIsCurrentTransactionId(entryXmin);
|
TransactionIdIsCurrentTransactionId(entryXmin);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue