diff options
author | Howard Chu <hyc@symas.com> | 2016-02-17 04:05:39 +0000 |
---|---|---|
committer | Howard Chu <hyc@symas.com> | 2016-02-17 05:06:19 +0000 |
commit | 3b13a7473eef3696b4d85109df085250697ff48e (patch) | |
tree | db97ef0250aa9ca654093ed9d7e8de5e65a06741 /src/blockchain_db | |
parent | Use cursor in get_output_key (diff) | |
download | monero-3b13a7473eef3696b4d85109df085250697ff48e.tar.xz |
Shutup about VERSION 0
Diffstat (limited to 'src/blockchain_db')
-rw-r--r-- | src/blockchain_db/berkeleydb/db_bdb.cpp | 4 | ||||
-rw-r--r-- | src/blockchain_db/lmdb/db_lmdb.cpp | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/blockchain_db/berkeleydb/db_bdb.cpp b/src/blockchain_db/berkeleydb/db_bdb.cpp index cdbca52f9..f035bf4c4 100644 --- a/src/blockchain_db/berkeleydb/db_bdb.cpp +++ b/src/blockchain_db/berkeleydb/db_bdb.cpp @@ -947,10 +947,12 @@ void BlockchainBDB::open(const std::string& filename, const int db_flags) LOG_PRINT_RED_L0("Existing BerkeleyDB database was made by a later version. We don't know how it will change yet."); compatible = false; } - else if (VERSION > 0 && result < VERSION) +#if VERSION > 0 + else if (result < VERSION) { compatible = false; } +#endif } else { diff --git a/src/blockchain_db/lmdb/db_lmdb.cpp b/src/blockchain_db/lmdb/db_lmdb.cpp index aec584e56..5119be3f5 100644 --- a/src/blockchain_db/lmdb/db_lmdb.cpp +++ b/src/blockchain_db/lmdb/db_lmdb.cpp @@ -1142,10 +1142,12 @@ void BlockchainLMDB::open(const std::string& filename, const int mdb_flags) LOG_PRINT_RED_L0("Existing lmdb database was made by a later version. We don't know how it will change yet."); compatible = false; } - else if (VERSION > 0 && *(const uint32_t*)v.mv_data < VERSION) +#if VERSION > 0 + else if (*(const uint32_t*)v.mv_data < VERSION) { compatible = false; } +#endif } else { |