aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db/lmdb/db_lmdb.cpp
diff options
context:
space:
mode:
authorThomas Winget <tewinget@gmail.com>2015-03-13 21:39:27 -0400
committerThomas Winget <tewinget@gmail.com>2015-03-13 21:39:27 -0400
commiteee3ee70730bc3bf7874e5f22139a55dac3a2cdd (patch)
treee36c6344d008e2112d3593ff318ca6733f3b6e50 /src/blockchain_db/lmdb/db_lmdb.cpp
parentFixed includes in BlockchainDB unit tests (diff)
downloadmonero-eee3ee70730bc3bf7874e5f22139a55dac3a2cdd.tar.xz
BlockchainDB implementations have names now
In order to make things more general, BlockchainDB now has get_db_name() which should return a string with the "name" of that type of db. This "name" will be the subfolder name that holds that db type's files within the monero folder. Small bugfix: blockchain_converter was not correctly appending this in the prior hard-coded-string implementation of the subfolder data directory concept.
Diffstat (limited to '')
-rw-r--r--src/blockchain_db/lmdb/db_lmdb.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/blockchain_db/lmdb/db_lmdb.cpp b/src/blockchain_db/lmdb/db_lmdb.cpp
index feff4a272..ee49e1827 100644
--- a/src/blockchain_db/lmdb/db_lmdb.cpp
+++ b/src/blockchain_db/lmdb/db_lmdb.cpp
@@ -775,6 +775,13 @@ std::vector<std::string> BlockchainLMDB::get_filenames() const
return filenames;
}
+std::string BlockchainLMDB::get_db_name() const
+{
+ LOG_PRINT_L3("BlockchainLMDB::" << __func__);
+
+ return std::string("lmdb");
+}
+
// TODO: this?
bool BlockchainLMDB::lock()
{