cleanup transient revisions only after a transaction is opened

This commit is contained in:
Krasimir Angelov
2021-12-29 14:52:21 +01:00
parent f118e644d9
commit cd2c6aa32a
3 changed files with 39 additions and 36 deletions

View File

@@ -144,6 +144,8 @@ PgfDB *pgf_read_ngf(const char *fpath,
{
DB_scope scope(db, WRITER_SCOPE);
db->cleanup_revisions();
ref<PgfPGF> pgf = PgfDB::get_revision(master);
Node<PgfPGF>::add_value_ref(pgf);
*revision = pgf.as_object();