Removed querying the NR scheduler user array from the metrics thread that caused a data race.

master
faluco 3 years ago committed by Andre Puschmann
parent e0238f4092
commit dadd2f7524

@ -81,9 +81,6 @@ void mac_nr::get_metrics(srsenb::mac_metrics_t& metrics)
srsran::rwlock_read_guard lock(rwlock);
metrics.ues.reserve(ue_db.size());
for (auto& u : ue_db) {
if (not sched.ue_exists(u.first)) {
continue;
}
metrics.ues.emplace_back();
u.second->metrics_read(&metrics.ues.back());
}

Loading…
Cancel
Save