Loading ifs/src/daemon/adafs_daemon.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -35,6 +35,7 @@ bool init_environment() { ADAFS_DATA->mdb(std::make_shared<MetadataDB>(metadata_path)); } catch (const std::exception & e) { ADAFS_DATA->spdlogger()->error("{}() unable to initialize metadata DB: {}", __func__, e.what()); return false; } // Initialize data backend Loading ifs/src/daemon/backend/metadata/db.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -19,7 +19,7 @@ MetadataDB::MetadataDB(const std::string& path): path(path) { rdb::DB * rdb_ptr; auto s = rocksdb::DB::Open(options, path, &rdb_ptr); if (!s.ok()) { std::runtime_error("Failed to opend RocksDB: " + s.ToString()); throw std::runtime_error("Failed to open RocksDB: " + s.ToString()); } this->db.reset(rdb_ptr); } Loading Loading
ifs/src/daemon/adafs_daemon.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -35,6 +35,7 @@ bool init_environment() { ADAFS_DATA->mdb(std::make_shared<MetadataDB>(metadata_path)); } catch (const std::exception & e) { ADAFS_DATA->spdlogger()->error("{}() unable to initialize metadata DB: {}", __func__, e.what()); return false; } // Initialize data backend Loading
ifs/src/daemon/backend/metadata/db.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -19,7 +19,7 @@ MetadataDB::MetadataDB(const std::string& path): path(path) { rdb::DB * rdb_ptr; auto s = rocksdb::DB::Open(options, path, &rdb_ptr); if (!s.ok()) { std::runtime_error("Failed to opend RocksDB: " + s.ToString()); throw std::runtime_error("Failed to open RocksDB: " + s.ToString()); } this->db.reset(rdb_ptr); } Loading