mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
Add missing Assert to make TransactionIdDidAbort more consistent with
TransactionIdDidCommit.
This commit is contained in:
parent
d77f74fa7e
commit
7531d2fd85
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/access/transam/transam.c,v 1.58 2004/08/22 02:41:57 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/access/transam/transam.c,v 1.59 2004/08/28 21:58:59 tgl Exp $
|
||||
*
|
||||
* NOTES
|
||||
* This file contains the high level access-method interface to the
|
||||
@ -258,6 +258,7 @@ TransactionIdDidAbort(TransactionId transactionId)
|
||||
if (TransactionIdPrecedes(transactionId, RecentXmin))
|
||||
return true;
|
||||
parentXid = SubTransGetParent(transactionId);
|
||||
Assert(TransactionIdIsValid(parentXid));
|
||||
return TransactionIdDidAbort(parentXid);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user