Browse Source

namespaces updated

cl-refactor
Vlad Gluhovsky 10 years ago
parent
commit
e7c5191b76
  1. 6
      libwhisper/WhisperDB.cpp
  2. 6
      libwhisper/WhisperDB.h

6
libwhisper/WhisperDB.cpp

@ -31,11 +31,11 @@ WhisperDB::WhisperDB()
{
string path = dev::getDataDir();
boost::filesystem::create_directories(path);
ldb::Options op;
leveldb::Options op;
op.create_if_missing = true;
op.max_open_files = 256;
ldb::DB* p = nullptr;
leveldb::Status status = ldb::DB::Open(op, path + "/whisper", &p);
leveldb::DB* p = nullptr;
leveldb::Status status = leveldb::DB::Open(op, path + "/whisper", &p);
m_db.reset(p);
if (!status.ok())
BOOST_THROW_EXCEPTION(FailedToOpenLevelDB(status.ToString()));

6
libwhisper/WhisperDB.h

@ -46,9 +46,9 @@ class WhisperDB
void kill(dev::h256 const& _key);
private:
ldb::ReadOptions m_readOptions;
ldb::WriteOptions m_writeOptions;
std::unique_ptr<ldb::DB> m_db;
leveldb::ReadOptions m_readOptions;
leveldb::WriteOptions m_writeOptions;
std::unique_ptr<leveldb::DB> m_db;
};
}

Loading…
Cancel
Save