if (pg_map.size() < max_pgs_per_osd) {
return false;
}
- auto&& pending_creates_locker = guardedly_lock(pending_creates_lock);
+ [[gnu::unused]] auto&& pending_creates_locker = guardedly_lock(pending_creates_lock);
if (is_mon_create) {
pending_creates_from_mon++;
} else {
return;
}
unsigned spare_pgs = max_pgs_per_osd - pg_map.size();
- auto&& locker = guardedly_lock(pending_creates_lock);
+ [[gnu::unused]] auto&& locker = guardedly_lock(pending_creates_lock);
if (pending_creates_from_mon > 0) {
do_sub_pg_creates = true;
if (pending_creates_from_mon >= spare_pgs) {
pg->unlock();
}
- auto&& pending_create_locker = guardedly_lock(pending_creates_lock);
+ [[gnu::unused]] auto&& pending_create_locker = guardedly_lock(pending_creates_lock);
for (auto pg = pending_creates_from_osd.cbegin();
pg != pending_creates_from_osd.cend();) {
if (osdmap->get_pg_acting_rank(*pg, whoami) < 0) {