diff --git a/src/Disks/IVolume.cpp b/src/Disks/IVolume.cpp index 5286cce5fcd..0c3519b58ae 100644 --- a/src/Disks/IVolume.cpp +++ b/src/Disks/IVolume.cpp @@ -46,7 +46,7 @@ MultiDiskReservation::MultiDiskReservation(Reservations &reservations_, UInt64 s : reservations(std::move(reservations_)) , size(size_) { - if (reservations.size() == 0) + if (reservations.empty()) { 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; res.reserve(reservations.size()); - for (auto &r: reservations) + for (const auto &r: reservations) { res.push_back(r->getDisk()); } diff --git a/src/Disks/ya.make b/src/Disks/ya.make index 0187bd54b48..2c4aecd70ff 100644 --- a/src/Disks/ya.make +++ b/src/Disks/ya.make @@ -16,6 +16,7 @@ SRCS( SingleDiskVolume.cpp StoragePolicy.cpp VolumeJBOD.cpp + VolumeRAID1.cpp ) END()