mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2024-12-22 22:59:27 +00:00
fix: Windows wrong path size of DB
Some checks are pending
CI / ci (macos-12) (push) Waiting to run
CI / ci (ubuntu-latest) (push) Waiting to run
Lockbud / lockbud (push) Waiting to run
Rust / fmt (push) Waiting to run
Rust / test (macos-latest) (push) Waiting to run
Rust / test (ubuntu-latest) (push) Waiting to run
Rust / typo (push) Waiting to run
Rust / clippy (macos-latest) (push) Waiting to run
Rust / clippy (ubuntu-latest) (push) Waiting to run
Rust / check (macos-latest) (push) Waiting to run
Rust / check (ubuntu-latest) (push) Waiting to run
Rust / doc (macos-latest) (push) Waiting to run
Rust / doc (ubuntu-latest) (push) Waiting to run
Typo / typo (push) Waiting to run
Some checks are pending
CI / ci (macos-12) (push) Waiting to run
CI / ci (ubuntu-latest) (push) Waiting to run
Lockbud / lockbud (push) Waiting to run
Rust / fmt (push) Waiting to run
Rust / test (macos-latest) (push) Waiting to run
Rust / test (ubuntu-latest) (push) Waiting to run
Rust / typo (push) Waiting to run
Rust / clippy (macos-latest) (push) Waiting to run
Rust / clippy (ubuntu-latest) (push) Waiting to run
Rust / check (macos-latest) (push) Waiting to run
Rust / check (ubuntu-latest) (push) Waiting to run
Rust / doc (macos-latest) (push) Waiting to run
Rust / doc (ubuntu-latest) (push) Waiting to run
Typo / typo (push) Waiting to run
This commit is contained in:
parent
3d3ea1ff71
commit
044526abd3
1 changed files with 4 additions and 2 deletions
|
@ -419,9 +419,11 @@ impl PrivNodeApi {
|
||||||
// https://github.com/monero-project/monero/issues/9513
|
// https://github.com/monero-project/monero/issues/9513
|
||||||
{
|
{
|
||||||
if let Ok(metadata) = std::fs::metadata(if !state.path_db.is_empty() {
|
if let Ok(metadata) = std::fs::metadata(if !state.path_db.is_empty() {
|
||||||
state.path_db.clone()
|
let mut path_db = state.path_db.clone();
|
||||||
|
path_db.push_str("lmdb/data/mdb");
|
||||||
|
path_db
|
||||||
} else {
|
} else {
|
||||||
r#"C:\ProgramData\bitmonero\"#.to_string()
|
r#"C:\ProgramData\bitmonero\lmdb\data.mdb"#.to_string()
|
||||||
}) {
|
}) {
|
||||||
private.result.database_size = metadata.file_size();
|
private.result.database_size = metadata.file_size();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue