8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 21:23:03 +01:00

Don't forget to remove user savepoints in the no-op part of the commit-retaining implementation.

This commit is contained in:
dimitr 2005-01-04 13:37:11 +00:00
parent 85a71a028e
commit a0b24cf577

View File

@ -409,6 +409,15 @@ void TRA_commit(thread_db* tdbb, jrd_tra* transaction, const bool retaining_flag
|| transaction->tra_deferred_work))
{
transaction->tra_flags &= ~TRA_prepared;
// Get rid of all user savepoints
while (transaction->tra_save_point &&
transaction->tra_save_point->sav_flags & SAV_user)
{
Savepoint* const next = transaction->tra_save_point->sav_next;
transaction->tra_save_point->sav_next = NULL;
VIO_verb_cleanup(tdbb, transaction);
transaction->tra_save_point = next;
}
return;
}