IMHO changing the default is a no-no. That would break way too many
databases.
The only way toward that would be deprecating any default for a few
years, forcing everyone to explicitly set NPP/PP/TPP. Then, in a second
step (if at all), a new default could be established.
--
You received this bug notification because you are a member of EPICS
Core Developers, which is subscribed to EPICS Base.
Matching subscriptions: epics-core-list-subscription
https://bugs.launchpad.net/bugs/1777768
Title:
NPP Put to a pp(TRUE) VAL field doesn't trigger monitors
Status in EPICS Base:
Incomplete
Bug description:
There is code in dbAccess.c::dbPut() that calls db_post_events() after
writing to a field. This code is conditional, and explicitly avoids
posting a monitor if the put was to the record's VAL field and that
field is marked pp(TRUE); if the put came from a CA client the record
is about to be processed anyway, so this conditional prevents 2
monitor events from being generated by the same put.
However if the put was actually from a DB link marked NPP, the above
logic is wrong because the record is not about to be processed. This
behavior is somewhat obscure, and does catch out database designers
(it came up again at APS just today).
It is possible for the DB link to call db_post_events() itself in this
case, but it isn't obvious whether it should or not. When I add the
necessary code the result looks a bit strange because the record's VAL
changes but the alarm state and timestamp do not. This could also
conflict with the monitor deadband processing as this monitor will
happen every time the put occurs and will not update the MLST field.
I will attach the necessary code changes to this bug report for the
3.16 branch; earlier branches would need it moving since the
modifications are to the DB link type, and I don't think it should go
in any earlier than 3.16 anyhow.
Opinions please, should this be applied or not?
To manage notifications about this bug go to:
https://bugs.launchpad.net/epics-base/+bug/1777768/+subscriptions
- Navigate by Date:
- Prev:
[Bug 1777768] Re: NPP Put to a pp(TRUE) VAL field doesn't trigger monitors Andrew Johnson via Core-talk
- Next:
[Bug 1777768] Re: NPP Put to a pp(TRUE) VAL field doesn't trigger monitors mdavidsaver via Core-talk
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
<2021>
2022
2023
2024
- Navigate by Thread:
- Prev:
[Bug 1777768] Re: NPP Put to a pp(TRUE) VAL field doesn't trigger monitors Andrew Johnson via Core-talk
- Next:
[Bug 1777768] Re: NPP Put to a pp(TRUE) VAL field doesn't trigger monitors mdavidsaver via Core-talk
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
<2021>
2022
2023
2024
|