Seagate / halon

High availability solution
Apache License 2.0
1 stars 0 forks source link

ruleNotificationHandler: fix eid leak #1471

Closed 1468ca0b-2a64-4fb4-8e52-ea5806644b4c closed 6 years ago

1468ca0b-2a64-4fb4-8e52-ea5806644b4c commented 6 years ago

Created by: andriytk

setPhaseIfConsume automatically takes the reference for eid, so there is no need to take it again at start_rule phase.

1468ca0b-2a64-4fb4-8e52-ea5806644b4c commented 6 years ago

Created by: andriytk

setPhaseIfConsume handle guard phase = setPhase handle $
  \msg@(HAEvent eid _) -> do
    todo eid
...
1468ca0b-2a64-4fb4-8e52-ea5806644b4c commented 6 years ago

Created by: andriytk

Just look inside this function.

1468ca0b-2a64-4fb4-8e52-ea5806644b4c commented 6 years ago

Created by: vvv

setPhaseIfConsume automatically takes the reference for eid

@andriytk Would you show me how it does that?