mirror of
https://github.com/monero-project/monero.git
synced 2024-11-18 10:01:02 +00:00
db_lmdb: fix free space reporting
reported by Brad Richards
This commit is contained in:
parent
421ab3119c
commit
223d7d0c7a
1 changed files with 2 additions and 1 deletions
|
@ -451,7 +451,8 @@ void BlockchainLMDB::do_resize(uint64_t increase_size)
|
||||||
boost::filesystem::space_info si = boost::filesystem::space(path);
|
boost::filesystem::space_info si = boost::filesystem::space(path);
|
||||||
if(si.available < add_size)
|
if(si.available < add_size)
|
||||||
{
|
{
|
||||||
MERROR("!! WARNING: Insufficient free space to extend database !!: " << si.available / 1LL << 20L);
|
MERROR("!! WARNING: Insufficient free space to extend database !!: " <<
|
||||||
|
(si.available >> 20L) << " MB available, " << (add_size >> 20L) << " MB needed");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue