From a8ab998b563223075ca6268da456ec0fa39ef3d2 Mon Sep 17 00:00:00 2001 From: fruffy Date: Wed, 20 Mar 2024 21:34:08 -0400 Subject: [PATCH] Try to support wildcard PacketReplicationEngine reads. --- proto/frontend/src/device_mgr.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/proto/frontend/src/device_mgr.cpp b/proto/frontend/src/device_mgr.cpp index 08be301f..dbe73c3d 100644 --- a/proto/frontend/src/device_mgr.cpp +++ b/proto/frontend/src/device_mgr.cpp @@ -1970,8 +1970,15 @@ class DeviceMgrImp { case PreEntry::kCloneSessionEntry: return pre_clone_read( pre_entry.clone_session_entry(), session, response); - default: - break; + case PreEntry::TYPE_NOT_SET: { + // If neither kCloneSessionEntry nor kMulticastGroupEntry is set, + // assume a wildcard read. + RETURN_IF_ERROR( + pre_mc_read(pre_entry.multicast_group_entry(), response)); + RETURN_IF_ERROR( + pre_clone_read(pre_entry.clone_session_entry(), session, response)); + RETURN_OK_STATUS(); + } } RETURN_ERROR_STATUS(Code::INVALID_ARGUMENT, "Invalid PRE operation"); }