diff options
author | Howard Chu <hyc@symas.com> | 2016-04-06 18:05:20 +0100 |
---|---|---|
committer | Howard Chu <hyc@symas.com> | 2016-04-08 03:11:05 +0100 |
commit | c14f9efd52084cee21ff9072c3a903eb33635b1d (patch) | |
tree | ebdf9f1a778a96c5240b678d6531ca3bf49f406c /src/blockchain_db/lmdb/db_lmdb.h | |
parent | Merge branch 'performance' into master (diff) | |
download | monero-c14f9efd52084cee21ff9072c3a903eb33635b1d.tar.xz |
Migration
Migrate from DB version 0 to version 1 on startup
Diffstat (limited to 'src/blockchain_db/lmdb/db_lmdb.h')
-rw-r--r-- | src/blockchain_db/lmdb/db_lmdb.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/blockchain_db/lmdb/db_lmdb.h b/src/blockchain_db/lmdb/db_lmdb.h index 8021a652c..c7121bf63 100644 --- a/src/blockchain_db/lmdb/db_lmdb.h +++ b/src/blockchain_db/lmdb/db_lmdb.h @@ -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; |