From dadd2f75244a26138ea29e573282a9cb902b79b8 Mon Sep 17 00:00:00 2001 From: faluco Date: Tue, 5 Oct 2021 14:12:45 +0200 Subject: [PATCH] Removed querying the NR scheduler user array from the metrics thread that caused a data race. --- srsenb/src/stack/mac/nr/mac_nr.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/srsenb/src/stack/mac/nr/mac_nr.cc b/srsenb/src/stack/mac/nr/mac_nr.cc index 2e027338d..f018cb9fe 100644 --- a/srsenb/src/stack/mac/nr/mac_nr.cc +++ b/srsenb/src/stack/mac/nr/mac_nr.cc @@ -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()); }