From 8a7d8ce246660fd60c1246f4f89d8e1df8a81cdc Mon Sep 17 00:00:00 2001 From: Krasimir Angelov Date: Mon, 23 May 2022 09:52:25 +0200 Subject: [PATCH] at the end of the transaction the old revision is already released. --- src/runtime/c/pgf/pgf.cxx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/runtime/c/pgf/pgf.cxx b/src/runtime/c/pgf/pgf.cxx index 3f7fdd345..3968ee4f5 100644 --- a/src/runtime/c/pgf/pgf.cxx +++ b/src/runtime/c/pgf/pgf.cxx @@ -1098,13 +1098,8 @@ void pgf_commit_transaction(PgfDB *db, PgfRevision revision, DB_scope scope(db, WRITER_SCOPE); ref new_pgf = db->revision2pgf(revision); - ref old_pgf = db->get_active_revision(); - db->set_active_revision(new_pgf.as_object()); - if (old_pgf != 0) - PgfPGF::release(old_pgf); - db->commit(); } PGF_API_END }