Skip to content

Commit

Permalink
fix path (auto from parity-db fail)
Browse files Browse the repository at this point in the history
  • Loading branch information
cheme committed Feb 1, 2022
1 parent 465489c commit 4cea166
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion node/service/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ where
)?
} else {
crate::parachains_db::open_creating(
paritydb_path.clone(),
paritydb_path.parent().ok_or(Error::DatabasePathRequired)?.into(),
crate::parachains_db::CacheSizes::default(),
)?
},
Expand Down
2 changes: 1 addition & 1 deletion node/service/src/parachains_db/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ pub fn exists_rocksdb_db(root: PathBuf) -> bool {
/// Open a parity db database.
#[cfg(feature = "full-node")]
pub fn open_creating(root: PathBuf, _cache_sizes: CacheSizes) -> io::Result<Arc<dyn Database>> {
let path = root.join("parachains").join("db");
let path = root.join("parachains");
let path_str = path
.to_str()
.ok_or_else(|| other_io_error(format!("Bad database path: {:?}", path)))?;
Expand Down

0 comments on commit 4cea166

Please sign in to comment.