fw: delete spurious assertion in AccessStrategy
Refs: #5127
Change-Id: Ic6d8b098dc29735f800d4c6b1dc40316d4755172
diff --git a/daemon/fw/access-strategy.cpp b/daemon/fw/access-strategy.cpp
index c40b12e..e906d12 100644
--- a/daemon/fw/access-strategy.cpp
+++ b/daemon/fw/access-strategy.cpp
@@ -255,15 +255,15 @@
std::tuple<Name, AccessStrategy::MtInfo*>
AccessStrategy::findPrefixMeasurements(const pit::Entry& pitEntry)
{
- measurements::Entry* me = this->getMeasurements().findLongestPrefixMatch(pitEntry);
+ auto me = this->getMeasurements().findLongestPrefixMatch(pitEntry);
if (me == nullptr) {
return std::make_tuple(Name(), nullptr);
}
- MtInfo* mi = me->getStrategyInfo<MtInfo>();
- BOOST_ASSERT(mi != nullptr);
- // XXX after runtime strategy change, it's possible that me exists but mi doesn't exist;
- // this case needs another longest prefix match until mi is found
+ auto mi = me->getStrategyInfo<MtInfo>();
+ // TODO: after a runtime strategy change, it's possible that a measurements::Entry exists but
+ // the corresponding MtInfo doesn't exist (mi == nullptr); this case needs another longest
+ // prefix match until an MtInfo is found.
return std::make_tuple(me->getName(), mi);
}