If we move the list, then a second beacon sent before the pg list refreshes
will be empty.
Fixes: http://tracker.ceph.com/issues/40377
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
f2f6e170de100cb57d06e4b9a3dbba65530f745f)
{
std::lock_guard l{min_last_epoch_clean_lock};
beacon = new MOSDBeacon(osdmap->get_epoch(), min_last_epoch_clean);
- std::swap(beacon->pgs, min_last_epoch_clean_pgs);
+ beacon->pgs = min_last_epoch_clean_pgs;
last_sent_beacon = now;
}
monc->send_mon_message(beacon);