aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db/lmdb/db_lmdb.h
diff options
context:
space:
mode:
authorHoward Chu <hyc@symas.com>2016-04-06 18:05:20 +0100
committerHoward Chu <hyc@symas.com>2016-04-08 03:11:05 +0100
commitc14f9efd52084cee21ff9072c3a903eb33635b1d (patch)
treeebdf9f1a778a96c5240b678d6531ca3bf49f406c /src/blockchain_db/lmdb/db_lmdb.h
parentMerge branch 'performance' into master (diff)
downloadmonero-c14f9efd52084cee21ff9072c3a903eb33635b1d.tar.xz
Migration
Migrate from DB version 0 to version 1 on startup
Diffstat (limited to '')
-rw-r--r--src/blockchain_db/lmdb/db_lmdb.h6
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;