Skip to content
Snippets Groups Projects
Commit 7d21b700 authored by Ali Mohammed's avatar Ali Mohammed
Browse files

always match dispose events - similar to declare

parent bfe892f7
No related branches found
No related tags found
No related merge requests found
Pipeline #127775 canceled
......@@ -1631,11 +1631,12 @@ mstro_subscription_selector_check(struct mstro_subscription_ *s,
mstro_status status = MSTRO_NOMATCH;
if(ev->payload_case==MSTRO__POOL__EVENT__PAYLOAD_DECLARE) {
if((ev->payload_case==MSTRO__POOL__EVENT__PAYLOAD_DECLARE) || (ev->payload_case==MSTRO__POOL__EVENT__PAYLOAD_DISPOSE)){
/* declare is special: no CDOID known yet, no attribuites, only
* string name. Efficient subscriptions will subscribe to
* DECLARE_ACK instead. */
WARN("DECLARE event always matches -- FIXME: only name could be checked (and we don't)\n");
/**After dispose, we do not have an entry in the app registry for this cdo. */
WARN("DECLARE and DISPOSE events always matches -- FIXME: only name could be checked (and we don't)\n");
return MSTRO_OK;
} else {
/* we always need the CDO id. Unfortunately it's slightly buried in the EV */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment