mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 02:21:59 +00:00
Update src/Disks/IVolume.cpp
Co-authored-by: Sergei Trifonov <sergei@clickhouse.com>
This commit is contained in:
parent
6345879cdf
commit
5a32995726
@ -51,7 +51,7 @@ IVolume::IVolume(
|
||||
|
||||
std::optional<UInt64> IVolume::getMaxUnreservedFreeSpace() const
|
||||
{
|
||||
std::optional<UInt64> res = 0;
|
||||
std::optional<UInt64> res;
|
||||
for (const auto & disk : disks)
|
||||
res = std::max(res, disk->getUnreservedSpace());
|
||||
return res;
|
||||
|
Loading…
Reference in New Issue
Block a user