control: `nameOwnerChanged` signals update all caches
When a `nameOwnerChanged` signal is received, update all entries within
the service tree cache for the given service's owner state change. Also,
use the service tree cache to cross reference removal of the associated
interfaces from objects within the objects cache.
Change-Id: Idab52a7533d626f1f7ef03397f904a74cb6457a3
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/control/json/triggers/signal.cpp b/control/json/triggers/signal.cpp
index 7a2dce0..9f7caa3 100644
--- a/control/json/triggers/signal.cpp
+++ b/control/json/triggers/signal.cpp
@@ -188,12 +188,8 @@
// Setup name owner changed signal handler on the group
// member's service
const auto match = rules::nameOwnerChanged(serv);
- SignalPkg signalPkg = {
- Handlers::nameOwnerChanged,
- SignalObject(std::cref(member),
- std::cref(group.getInterface()),
- std::cref(group.getProperty())),
- actions};
+ SignalPkg signalPkg = {Handlers::nameOwnerChanged,
+ SignalObject(), actions};
// If signal match already exists, then the service will be the
// same so add action to be run
auto isSameSig = [](SignalPkg& pkg) { return true; };