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

@@ -90,6 +90,8 @@ public:
current_db->free_internal(o.as_object());
}
PGF_INTERNAL_DECL void cleanup_revisions();
static PGF_INTERNAL_DECL ref<PgfPGF> get_revision(PgfText *name);
static PGF_INTERNAL_DECL void set_revision(ref<PgfPGF> pgf);
@@ -111,10 +113,9 @@ private:
PGF_INTERNAL_DECL object malloc_internal(size_t bytes);
PGF_INTERNAL_DECL void free_internal(object o);
PGF_INTERNAL_DECL void register_process(bool *is_first);
PGF_INTERNAL_DECL void register_process();
PGF_INTERNAL_DECL void unregister_process();
PGF_INTERNAL_DECL void lock(DB_scope_mode m);
PGF_INTERNAL_DECL void unlock();