From c077e8dbb95a1b9a75a8b37fd4d1e46e4b5318bc Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Tue, 18 Sep 2018 17:39:50 +1000 Subject: [PATCH] Use different directory for rocksdb database --- lighthouse/db/disk_db.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lighthouse/db/disk_db.rs b/lighthouse/db/disk_db.rs index 266b9afe1..df6e660b9 100644 --- a/lighthouse/db/disk_db.rs +++ b/lighthouse/db/disk_db.rs @@ -28,10 +28,9 @@ impl DiskDB { /* * Initialise the path */ - let mut db_path = path.join("rocksdb"); - fs::create_dir_all(&db_path) - .expect(&format!("Unable to create {:?}", &db_path)); - db_path = db_path.join("database"); + fs::create_dir_all(&path) + .expect(&format!("Unable to create {:?}", &path)); + let db_path = path.join("database"); /* * Open the database