database synchronization only on commit

This commit is contained in:
krangelov
2021-09-17 16:43:54 +02:00
parent 44b5d0f870
commit e41feae82a
3 changed files with 21 additions and 16 deletions

View File

@@ -85,6 +85,8 @@ public:
static PGF_INTERNAL_DECL void link_transient_revision(ref<PgfPGF> pgf);
static PGF_INTERNAL_DECL void unlink_transient_revision(ref<PgfPGF> pgf);
static PGF_INTERNAL_DECL void sync();
private:
PGF_INTERNAL_DECL void init_state(size_t size);
@@ -102,7 +104,6 @@ public:
~DB_scope();
private:
DB_scope_mode mode;
PgfDB* save_db;
DB_scope* next_scope;
};