Migration

Migrate from DB version 0 to version 1 on startup
This commit is contained in:
Howard Chu 2016-04-06 18:05:20 +01:00
parent d7ea7d9a23
commit c14f9efd52
2 changed files with 1049 additions and 5 deletions

File diff suppressed because it is too large Load Diff

View File

@ -339,6 +339,12 @@ private:
// fix up anything that may be wrong due to past bugs
virtual void fixup();
// migrate from older DB version to current
void migrate(const uint32_t oldversion);
// migrate from DB version 0 to 1
void migrate_0_1();
MDB_env* m_env;
MDB_dbi m_blocks;