mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-29 13:10:48 +00:00
Small clang-10 warning fixes + ya.make
This commit is contained in:
parent
db56820fab
commit
96c7cc8724
@ -46,7 +46,7 @@ MultiDiskReservation::MultiDiskReservation(Reservations &reservations_, UInt64 s
|
|||||||
: reservations(std::move(reservations_))
|
: reservations(std::move(reservations_))
|
||||||
, size(size_)
|
, size(size_)
|
||||||
{
|
{
|
||||||
if (reservations.size() == 0)
|
if (reservations.empty())
|
||||||
{
|
{
|
||||||
throw Exception("At least one reservation must be provided to MultiDiskReservation", ErrorCodes::NO_RESERVATIONS_PROVIDED);
|
throw Exception("At least one reservation must be provided to MultiDiskReservation", ErrorCodes::NO_RESERVATIONS_PROVIDED);
|
||||||
}
|
}
|
||||||
@ -64,7 +64,7 @@ Disks MultiDiskReservation::getDisks() const
|
|||||||
{
|
{
|
||||||
Disks res;
|
Disks res;
|
||||||
res.reserve(reservations.size());
|
res.reserve(reservations.size());
|
||||||
for (auto &r: reservations)
|
for (const auto &r: reservations)
|
||||||
{
|
{
|
||||||
res.push_back(r->getDisk());
|
res.push_back(r->getDisk());
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,7 @@ SRCS(
|
|||||||
SingleDiskVolume.cpp
|
SingleDiskVolume.cpp
|
||||||
StoragePolicy.cpp
|
StoragePolicy.cpp
|
||||||
VolumeJBOD.cpp
|
VolumeJBOD.cpp
|
||||||
|
VolumeRAID1.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
END()
|
END()
|
||||||
|
Loading…
Reference in New Issue
Block a user