Add missing Assert to make TransactionIdDidAbort more consistent with

TransactionIdDidCommit.
This commit is contained in:
Tom Lane 2004-08-28 21:58:59 +00:00
parent d77f74fa7e
commit 7531d2fd85

View File

@ -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);
}