mirror of
https://github.com/monero-project/monero.git
synced 2025-08-17 11:30:25 -04:00
Fix get_database_size on Windows
Replace all calls to epee::file_io::get_file_size with boost::filesystem::file_size in order to avoid lossy conversions from paths to strings, which tend to break filename resolution. This commit fixes a bug on Windows where the get_info RPC call reported a zero database size because BlockchainLMBD::get_database_size returned zero.
This commit is contained in:
parent
7fb0d2f48d
commit
36c5987156
4 changed files with 8 additions and 44 deletions
|
@ -38,7 +38,6 @@ namespace file_io_utils
|
|||
bool is_file_exist(const std::string& path);
|
||||
bool save_string_to_file(const std::string& path_to_file, const std::string& str);
|
||||
bool load_file_to_string(const std::string& path_to_file, std::string& target_str, size_t max_size = 1000000000);
|
||||
bool get_file_size(const std::string& path_to_file, uint64_t &size);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue