Skip to content

Commit

Permalink
Send DBE_PROPERTY events before DBE_VALUE | DBE_LOG events to allow c…
Browse files Browse the repository at this point in the history
…lients to update their formatting etc in time
  • Loading branch information
dirk-zimoch authored and anjohnson committed Nov 13, 2024
1 parent 9e7cd24 commit b7cc33c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/database/src/ioc/db/dbAccess.c
Original file line number Diff line number Diff line change
Expand Up @@ -1390,6 +1390,11 @@ long dbPut(DBADDR *paddr, short dbrType,
}
}

/* Post property updates before second dbPutSpecial */
/* which may post DBE_VALUE and/or DBE_LOG events */
if (propertyUpdate && !status)
db_post_events(precord, NULL, DBE_PROPERTY);

/* Always do special processing if needed */
if (special) {
long status2 = dbPutSpecial(paddr, 1);
Expand All @@ -1406,8 +1411,6 @@ long dbPut(DBADDR *paddr, short dbrType,
if (precord->mlis.count &&
!(isValueField && pfldDes->process_passive))
db_post_events(precord, pfieldsave, DBE_VALUE | DBE_LOG);
if (propertyUpdate)
db_post_events(precord, NULL, DBE_PROPERTY);
done:
paddr->pfield = pfieldsave;
return status;
Expand Down

0 comments on commit b7cc33c

Please sign in to comment.