Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
fixed blooms dir creation (#8941)
Browse files Browse the repository at this point in the history
  • Loading branch information
svyatonik authored and debris committed Jun 22, 2018
1 parent 31b4437 commit 6be5744
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ethcore/src/test_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ pub fn restoration_db_handler(config: kvdb_rocksdb::DatabaseConfig) -> Box<Block
let key_value = Arc::new(kvdb_rocksdb::Database::open(&self.config, &db_path.to_string_lossy())?);
let blooms_path = db_path.join("blooms");
let trace_blooms_path = db_path.join("trace_blooms");
fs::create_dir(&blooms_path)?;
fs::create_dir(&trace_blooms_path)?;
fs::create_dir_all(&blooms_path)?;
fs::create_dir_all(&trace_blooms_path)?;
let blooms = blooms_db::Database::open(blooms_path).unwrap();
let trace_blooms = blooms_db::Database::open(trace_blooms_path).unwrap();
let db = RestorationDB {
Expand Down
4 changes: 2 additions & 2 deletions parity/db/rocksdb/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ pub fn open_database(client_path: &str, config: &DatabaseConfig) -> Result<Arc<B

let blooms_path = path.join("blooms");
let trace_blooms_path = path.join("trace_blooms");
fs::create_dir(&blooms_path)?;
fs::create_dir(&trace_blooms_path)?;
fs::create_dir_all(&blooms_path)?;
fs::create_dir_all(&trace_blooms_path)?;

let db = AppDB {
key_value: Arc::new(Database::open(&config, client_path)?),
Expand Down

0 comments on commit 6be5744

Please sign in to comment.